### Question:
AbstractTraverserWorker implements TraverserWorker { @Override public String getName() { return name; } AbstractTraverserWorker(TraverserConfiguration conf, IndexingService indexingService); @Override String getName(); @Override final void shutdown();  }### Answer:
@Test public void testGetName(){ TraverserConfiguration conf = mock(TraverserConfiguration.class); when(conf.getName()).thenReturn("TestName"); AbstractTraverserWorker my = spy(new AbstractTraverserWorkerMock(conf , indexingService)); my.getName(); assertEquals(my.getName(), "TestName"); }