+ protected void addAlbum(String albumId, Album album) {
+ when(core.getAlbum(eq(albumId))).thenReturn(album);
+ }
+
+ protected void addImage(String imageId, Image image) {
+ when(core.getImage(eq(imageId))).thenReturn(image);
+ when(core.getImage(eq(imageId), anyBoolean())).thenReturn(image);
+ }
+