@Override
  public ImportResult importItem(UUID jobId, IdempotentImportExecutor idempotentExecutor,
      AD authData, MediaContainerResource data) throws Exception {
    PhotosContainerResource photosResource = MediaContainerResource.mediaToPhoto(data);
    ImportResult photosResult = photosImporter
        .importItem(jobId, idempotentExecutor, authData, photosResource);

    VideosContainerResource videosResource = MediaContainerResource.mediaToVideo(data);
    ImportResult videosResult = videosImporter
        .importItem(jobId, idempotentExecutor, authData, videosResource);

    return ImportResult.merge(photosResult, videosResult);
  }
@Test
  public void shouldHandleErrorInVideos() throws Exception {
    Exception throwable = new Exception();
    mediaImporter = new MediaImporterDecorator<>(photosImporter,
        (id, ex, ad, data) -> new ImportResult(throwable));

    MediaContainerResource mcr = new MediaContainerResource(albums, photos, videos);
    ImportResult res = mediaImporter.importItem(null, null, null, mcr);
    assertEquals(new ImportResult(throwable), res);
  }