@Test
public void testNameClash() throws Exception {

  final RepositoryFile mock = mock( RepositoryFile.class );
  when( repository.getFile( "null/1" ) ).thenReturn( mock );
  final UpdateSchedulingLocationListener updateSchedulingLocationListener =
    new UpdateSchedulingLocationListener( "/test", "1" );
  updateSchedulingLocationListener.onSchedulingCompleted( "test.prpt" );
  verify( repository ).moveFile( null, "null/1(1)", "Moved to the location selected by user" );
}