@Test
public void shouldTriggerBackfillsNewReversed() throws IOException {

  final Workflow workflow = createWorkflow(WORKFLOW_ID1);
  initWorkflow(workflow);
  final int concurrency = BACKFILL_2.concurrency();
  backfills.put(BACKFILL_2.id(), BACKFILL_2);
  backfillTriggerManager.tick();
  var schedule = workflow.configuration().schedule();
  var instants = Lists.reverse(instantsInRange(BACKFILL_2.start(), BACKFILL_2.end(), schedule))
      .subList(0, concurrency);
  for (final Instant instant : instants) {
    verify(triggerListener).event(workflow, Trigger.backfill(BACKFILL_2.id()), instant, TRIGGER_PARAMETERS);
    verify(transaction).store(BACKFILL_2.builder().nextTrigger(previousInstant(instant, BACKFILL_2.schedule())).build());
  }
  verify(transaction, times(concurrency)).store(any(Backfill.class));
}