StatisticsService { public Statistics getStatistics() { return statisticsDao.getQueueStatistics(); } @Inject  StatisticsService(StatisticsDao statisticsDao); Statistics getStatistics(); Map<String, Map<String, WorkflowDefinitionStatistics>> getWorkflowDefinitionStatistics(String type,
      DateTime createdAfter, DateTime createdBefore, DateTime modifiedAfter, DateTime modifiedBefore);  }
@Test public void queryStatisticsDelegatesToDao() { service.getStatistics(); verify(dao).getQueueStatistics(); }