public Result getNewName( File destDir, String newPath ) {
    try {
      FileProvider<File> fileProvider = providerService.get( destDir.getProvider() );
      return Result.success( "", fileProvider.getNewName( destDir, newPath, space ) );
    } catch ( InvalidFileProviderException | FileException e ) {
      return null;
    }
  }
@Test
  public void testGetNewName() {
    TestDirectory testDirectory = new TestDirectory();
    testDirectory.setPath( "/directory1" );
    String newName = (String) fileController.getNewName( testDirectory, "/directory1/file1" ).getData();
    Assert.assertEquals( "/directory1/file1 1", newName );
  }