@Test
public void withZeroOldWorkflowsNothingIsDeleted() {

  when(dao.getOldWorkflowIds(MAIN, limit, BATCH_SIZE, emptySet())).thenReturn(emptyList);
  MaintenanceResults results = service.cleanupWorkflows(deleteMainConfig);
  assertEquals(0, results.deletedWorkflows);
  verify(dao).getOldWorkflowIds(MAIN, limit, BATCH_SIZE, emptySet());
  verifyNoMoreInteractions(dao, tableMetadataChecker);
}