@Test
public void shouldTriggerBackfillsInProgressReversed() throws IOException {

  final Workflow workflow = createWorkflow(WORKFLOW_ID1);
  initWorkflow(workflow);
  backfills.put(BACKFILL_2.id(), BACKFILL_2.builder()
      .nextTrigger(Instant.parse("2016-12-03T00:00:00Z"))
      .build());
  final WorkflowInstance wfi1 = WorkflowInstance.create(WORKFLOW_ID1, "2016-12-03T01");
  activeStates.put(wfi1, RunState.fresh(wfi1));
  backfillTriggerManager.tick();
  verify(triggerListener, only()).event(
      workflow,
      Trigger.backfill(BACKFILL_2.id()), Instant.parse("2016-12-03T00:00:00Z"), TRIGGER_PARAMETERS);
}