@Test
public void shouldNotTriggerBackfillsIfNoCapacity() throws IOException {

  final Workflow workflow = createWorkflow(WORKFLOW_ID1);
  initWorkflow(workflow);
  backfills.put(BACKFILL_1.id(), BACKFILL_1);
  final WorkflowInstance wfi1 = WorkflowInstance.create(WORKFLOW_ID1, "2016-12-02T22");
  final WorkflowInstance wfi2 = WorkflowInstance.create(WORKFLOW_ID1, "2016-12-02T23");
  activeStates.put(wfi1, RunState.fresh(wfi1));
  activeStates.put(wfi2, RunState.fresh(wfi2));
  backfillTriggerManager.tick();
  verifyZeroInteractions(triggerListener);
  verify(transaction, never()).store(any(Backfill.class));
}