### Question:
LocatorRunner implements Runnable { public void stop() { stopping = true; }  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 testStop() throws Exception { assertFalse( stringLocatorRunner.stopping ); stringLocatorRunner.stop(); assertTrue( stringLocatorRunner.stopping ); }