@Test
public void shouldIgnoreIfAlreadyInitialized() throws IOException {

  final Workflow workflow = createWorkflow(WORKFLOW_ID1);
  initWorkflow(workflow);
  final int concurrency = BACKFILL_1.concurrency();
  backfills.put(BACKFILL_1.id(), BACKFILL_1);
  doThrow(new AlreadyInitializedException(""))
      .when(triggerListener)
      .event(any(), any(), eq(Instant.parse("2016-12-02T22:00:00Z")), eq(TRIGGER_PARAMETERS));
  backfillTriggerManager.tick();
  final List<Instant> instants = instantsInRange(BACKFILL_1.start(), BACKFILL_1.end(),
      workflow.configuration().schedule());
  instants.stream().limit(concurrency).forEach(instant ->
          verify(triggerListener).event(workflow, Trigger.backfill(BACKFILL_1.id()), instant, TRIGGER_PARAMETERS));
  verify(transaction)
      .store(BACKFILL_1.builder().nextTrigger(instants.get(concurrency)).build());
}