### Question:
LocatorRunner implements Runnable { @Override public void run() { running = true; locate( root ); running = false; }  void setRoot( T root ); void setLocator( BaseLocator repoLocator ); @Override void run(); boolean isRunning(); void stop(); void processFile( INamespace namespace, String name, String id, Object file );  }### Answer:
@Test public void testRun() throws Exception { LocatorRunner lr = spy( stringLocatorRunner ); lr.root = "myRoot"; lr.run(); Mockito.verify( lr, Mockito.times( 1 ) ).locate( "myRoot" ); }