public void testJobDispatchStatistics() {
final MultipleNodeExecutorFactory factory = Mockito.mock(MultipleNodeExecutorFactory.class);
final MultipleNodeExecutorTuner tuner = new MultipleNodeExecutorTuner(factory);
final AtomicLong age = new AtomicLong();
final TotallingNodeStatisticsGatherer stats = new TotallingNodeStatisticsGatherer() {
@Override
public void dropStatisticsBefore(final Instant limit) {
assertEquals(age.getAndSet(Instant.now().getEpochSecond() - limit.getEpochSecond()), 0);
}
};