@Test
public void getStatisticsWorksWithCreatedLimits() {

  WorkflowInstance i1 = constructWorkflowInstanceBuilder().setNextActivation(null).build();
  instanceDao.insertWorkflowInstance(i1);
  Map<String, Map<String, WorkflowDefinitionStatistics>> stats = statisticsDao.getWorkflowDefinitionStatistics(i1.type, now()
      .plusDays(1), now().plusDays(2), null, null);
  assertThat(stats.size(), is(0));
}