@Test
@Parameters(method = "invalidsStyxTriggerToFlyteExecMode")
public void testCreateExecutionThrowsExceptionForInvalidExecutionMode(Trigger styxTrigger) {

  var exception = assertThrows(
      FlyteRunner.CreateExecutionException.class,
      () -> flyteRunner.createExecution(runState(styxTrigger), "test-create-execution", FLYTE_EXEC_CONF, ANNOTATIONS)
  );
  assertThat(exception.getMessage(), containsString("Missing trigger or unknown in StateData"));
}