@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 shouldHandleVariousInputs() throws Exception {
    assertEquals(ImportResult.OK,
        mediaImporter.importItem(null, null, null, new MediaContainerResource(null, null, null)));
    assertEquals(ImportResult.OK,
        mediaImporter
            .importItem(null, null, null, new MediaContainerResource(albums, null, videos)));
    assertEquals(ImportResult.OK,
        mediaImporter
            .importItem(null, null, null, new MediaContainerResource(albums, photos, null)));
    assertEquals(ImportResult.OK,
        mediaImporter
            .importItem(null, null, null, new MediaContainerResource(albums, photos, videos)));
  }