### Question:
LocatorRunner implements Runnable { public boolean isRunning() { return running; }  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 testIsRunning() throws Exception { LocatorRunner<String> stringLocatorRunner = new LocatorRunner<String>() { @Override protected void locate( String root ) { assertTrue( this.isRunning() ); } }; assertFalse( stringLocatorRunner.isRunning() ); stringLocatorRunner.run(); }