@Test
  public void delete_by_galleryId() {

    // given
    Long galleryId = 23l;

    when(photoRepository.findAllByGalleryId(galleryId)).thenReturn(expectedPhotoList);
    photoService.setPhotoRepository(photoRepository);
    photoService.setPhotoImageService(photoImageService);

    // execute
    photoService.deleteByGalleryId(galleryId);

    // assert
    verify(photoRepository, times(1)).findAllByGalleryId(galleryId);
    verify(photoRepository, times(1)).delete(expectedPhotoList);
    verify(photoImageService, times(1)).delete(expectedPhotoList.get(0).getId());
    verify(photoImageService, times(1)).delete(expectedPhotoList.get(1).getId());
    verifyNoMoreInteractions(photoRepository);
    verifyNoMoreInteractions(photoImageService);
  }