@Test
public void getStatisticsWorksWithModifiedLimits() {

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