@Test
public void shouldStopOnFailFastExitCodeReceived() {

  var data = data(1, 1.0, Optional.of(50));
  var failed = RunState.create(WORKFLOW_INSTANCE, FAILED, data, NOW, COUNTER);
  terminationHandler.transitionInto(failed, eventRouter);
  verify(eventRouter).receiveIgnoreClosed(Event.stop(WORKFLOW_INSTANCE), COUNTER);
}