    @Test
    public void savePhoto_shouldSavePhotoToCacheAndLocal() {

        final Photo photo = new Photo(1, 10, "a");

        repository.savePhoto(photo);

        verify(remoteDataSource, never()).savePhoto(photo);
        verify(localDataSource, times(1)).savePhoto(photo);
        assertThat(repository.cachedPhotos.size(), is(1));
    }