@Test
public void shouldEvaluateToFalseWhenMissingTriggerType() {

  var result = terminationHandler.retryConditionMet(
      RunState.create(WORKFLOW_INSTANCE, FAILED,
          StateData.newBuilder()
              .tries(3)
              .consecutiveFailures(2)
              .build()),
      Optional.of(1),
      "#exitCode == 1 && (#tries < 3 || #consecutiveFailures < 4) && #triggerType == \"natural\"");
  assertThat(result, is(false));
}