@Test
public void onSchedulingCompleted() throws Exception {

  final UpdateSchedulingLocationListener listener =
    new UpdateSchedulingLocationListener( "/notexists", "test" );
  //no report
  listener.onSchedulingCompleted( "notexists.prpt" );
  listener.onSchedulingCompleted( "null" );
  verify( repository, times( 4 ) ).getFileById( any() );
  verify( repository, times( 0 ) ).moveFile( any(), any(), any() );
  final UpdateSchedulingLocationListener listener3 =
    new UpdateSchedulingLocationListener( "null", "test" );
  listener3.onSchedulingCompleted( "notexists.prpt" );
  listener3.onSchedulingCompleted( "null" );
  listener3.onSchedulingCompleted( "test.prpt" );
  verify( repository, times( 0 ) ).moveFile( any(), any(), any() );
  final UpdateSchedulingLocationListener listener2 =
    new UpdateSchedulingLocationListener( "/test", "test" );
  //Valid key but dir not file
  listener2.onSchedulingCompleted( "/test" );
  listener2.onSchedulingCompleted( "null" );
  verify( repository, times( 0 ) ).moveFile( any(), any(), any() );
  //Success
  listener2.onSchedulingCompleted( "test.prpt" );
  //Temp with uuid  + valid location
  verify( repository, times( 2 ) ).moveFile( any(), any(), any() );
}