@Test
public void testUndefinedShouldNotInteractWithStateManager() throws Exception {

  when(flyteAdminClient.getExecution("flyte-test", "testing", "execution-name")).thenReturn(
      ExecutionOuterClass.Execution
          .newBuilder()
          .setClosure(ExecutionOuterClass.ExecutionClosure.newBuilder()
              .setPhase(Execution.WorkflowExecution.Phase.UNDEFINED).build())
          .build());
  flyteRunner.poll(FLYTE_EXECUTION_ID, RUN_STATE);
  verifyNoInteractions(stateManager);
}