ComparisonResultsRouter extends StepManager implements ChangeObserver,
    TaskFinishPoint { @Override public void informChangesCompleted() { collectingFinished = true; persistMetadataIfFinished(); } ComparisonResultsRouter(TimeoutWatch timeoutWatch, JmsConnection jmsConnection,
      RunnerConfiguration runnerConfiguration, RunIndexWrapper runIndexWrapper); @Override void updateAmountToReceive(int additionalCount); @Override void informChangesCompleted(); @Override void onMessage(Message message); @Override boolean isFinished(); void abort();  }
@Test public void informChangesCompleted_whenCollectingFinished_expectMetadataPersisted() throws Exception { Timestamp mockedTimestamp = Mockito.mock(Timestamp.class); when(runIndexWrapper.get().getRealSuite()).thenReturn(suite); when(suite.getRunTimestamp()).thenReturn(mockedTimestamp); when(suite.getFinishedTimestamp()).thenReturn(mockedTimestamp); ((ComparisonResultsRouter) tested).informChangesCompleted(); }