BioentityIndexMonitor { public synchronized boolean start() { if (Status.INITIALIZED == status || Status.COMPLETED == status || Status.FAILED == status) { totalTimeStopwatch = Stopwatch.createStarted(); indexingProgress.reset(); currentFile = null; status = Status.STARTED; return true; } return false; } @Inject  BioentityIndexMonitor(Path bioentityPropertiesDirPath,
                                 IndexingProgress indexingProgress); synchronized boolean start(); synchronized void stop(); synchronized void processing(BioentityPropertyFile file); synchronized void completed(); synchronized void failed(Exception e); Status getStatus(); String reportProgress();  }
@Test public void startShouldResetIndexingProgress() { subject.start(); verify(indexingProgressMock).reset(); }