@Test
public void getQueueStatisticsReasonableResults() {

  Statistics stats = statisticsDao.getQueueStatistics();
  QueueStatistics exec = stats.executionStatistics;
  assertThat(exec.count, is(0));
  assertThat(exec.maxAgeMillis, nullValue());
  assertThat(exec.minAgeMillis, nullValue());
  QueueStatistics queued = stats.queuedStatistics;
  assertThat(queued.count, is(2));
  assertThat(queued.maxAgeMillis, greaterThanOrEqualTo(queued.minAgeMillis));
  assertThat(queued.maxAgeMillis, greaterThanOrEqualTo(0L));
  assertThat(queued.minAgeMillis, greaterThanOrEqualTo(0L));
}