@Test
public void shouldScheduleRetryOf10MinutesOnMissingDependencies() {

  StateData data = data(1, 1.0, Optional.of(20));
  RunState missingDeps = RunState.create(WORKFLOW_INSTANCE, TERMINATED, data, NOW, COUNTER);
  terminationHandler.transitionInto(missingDeps, eventRouter);
  verify(eventRouter).receiveIgnoreClosed(
      Event.retryAfter(WORKFLOW_INSTANCE, Duration.ofMinutes(10).toMillis()), COUNTER);
}