@Test
public void shouldMarkAsAllTriggeredIfEndOfBackfillEncountered() throws IOException {

  final Workflow workflow = createWorkflow(WORKFLOW_ID1);
  initWorkflow(workflow);
  final Backfill completedBackfill =
      BACKFILL_3.builder().nextTrigger(BACKFILL_3.end()).allTriggered(false).build();
  backfills.put(completedBackfill.id(), completedBackfill);
  backfillTriggerManager.tick();
  verify(transaction).store(completedBackfill.builder().allTriggered(true).build());
  verifyZeroInteractions(triggerListener);
}