@Test
public void shouldCleanupPodWithoutRunStateIfNotTerminated() {

  // inject mock status in real instance
  createdPod.setStatus(podStatus);
  when(podStatus.getContainerStatuses()).thenReturn(List.of(containerStatus, keepaliveContainerStatus));
  when(containerStatus.getName()).thenReturn(MAIN_CONTAINER_NAME);
  when(containerStatus.getState()).thenReturn(containerState);
  when(k8sClient.getPod(POD_NAME)).thenReturn(Optional.of(createdPod));
  var shouldDelete = kdr.shouldDeletePodWithoutRunState(WORKFLOW_INSTANCE, createdPod);
  assertThat(shouldDelete, is(true));
}