@Test
@Parameters(method = "parametersForTestTransitionPollingToTerminateExitCodes")
public void runningToTerminateExitCodes(Execution.WorkflowExecution.Phase phase, String flyteExitCode, int exitCode){

  var execution = createExecutionExitCodes(phase, flyteExitCode);
  when(runState.state()).thenReturn(RunState.State.RUNNING);
  when(runState.workflowInstance()).thenReturn(WFI);
  var events = translate(execution, runState);
  var expectedEvents = List.of(Event.terminate(WFI, Optional.of(exitCode)));
  assertEquals(events, expectedEvents);
}