@Parameters({"NEW", "QUEUED", "PREPARE", "SUBMITTING", "SUBMITTED", "RUNNING"})

@Test
public void shouldNotDeletePodAfterNonDeletePeriodIfRunStateStillRunning(String stateName) {
  final State state = State.valueOf(stateName);
  createdPod.setStatus(podStatus);
  when(podStatus.getContainerStatuses()).thenReturn(List.of(containerStatus, keepaliveContainerStatus));
  when(containerStatus.getName()).thenReturn(MAIN_CONTAINER_NAME);
  when(containerStatus.getState()).thenReturn(containerState);
  when(containerState.getTerminated()).thenReturn(containerStateTerminated);
  when(containerStateTerminated.getFinishedAt())
      .thenReturn(FIXED_INSTANT.minus(Duration.ofMinutes(5)).toString());
  var runState = RunState.create(WORKFLOW_INSTANCE, state);
  var shouldDelete = kdr.shouldDeletePodWithRunState(WORKFLOW_INSTANCE, createdPod, runState);
  assertThat(shouldDelete, is(false));
}