@VisibleForTesting
  String importSingleAlbum(UUID jobId, TokensAndUrlAuthData authData, MediaAlbum inputAlbum)
      throws IOException, InvalidTokenException, PermissionDeniedException, UploadErrorException {
    // Set up album
    GoogleAlbum googleAlbum = new GoogleAlbum();
    googleAlbum.setTitle(GooglePhotosImportUtils.cleanAlbumTitle(inputAlbum.getName()));

    GoogleAlbum responseAlbum =
        getOrCreatePhotosInterface(jobId, authData).createAlbum(googleAlbum);
    return responseAlbum.getId();
  }
@Test
  public void importAlbumWithITString()
      throws PermissionDeniedException, InvalidTokenException, IOException, UploadErrorException {
    String albumId = "Album Id";
    String albumName = "Album Name";
    String albumDescription = "Album Description";

    MediaAlbum albumModel = new MediaAlbum(albumId, albumName, albumDescription);

    PortabilityJob portabilityJob = mock(PortabilityJob.class);
    Mockito.when(portabilityJob.userLocale()).thenReturn("it");
    JobStore jobStore = mock(JobStore.class);
    Mockito.when(jobStore.findJob(uuid)).thenReturn(portabilityJob);
    GoogleAlbum responseAlbum = new GoogleAlbum();
    responseAlbum.setId(NEW_ALBUM_ID);
    Mockito.when(googlePhotosInterface.createAlbum(any(GoogleAlbum.class)))
        .thenReturn(responseAlbum);
    PhotosLibraryClient photosLibraryClient = mock(PhotosLibraryClient.class);

    GoogleMediaImporter sut =
        new GoogleMediaImporter(
            null,  /*credentialFactory*/
            jobStore,
            null,  /*jsonFactory*/
            new HashMap<>(),  /*photosInterfacesMap*/
            new HashMap<>(),  /*photosLibraryClientMap*/
            appCredentials,
            googlePhotosInterface,
            connectionProvider,
            monitor,
            1.0  /*writesPerSecond*/);

    sut.importSingleAlbum(uuid, null, albumModel);
    ArgumentCaptor<GoogleAlbum> albumArgumentCaptor = ArgumentCaptor.forClass(GoogleAlbum.class);
    Mockito.verify(googlePhotosInterface).createAlbum(albumArgumentCaptor.capture());
    assertEquals(albumArgumentCaptor.getValue().getTitle(), albumName);
  }