@Test
public void shouldCleanupPodWithoutRunStateAfterNonDeletePeriod() {

  // 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(containerState.getTerminated()).thenReturn(containerStateTerminated);
  when(containerStateTerminated.getFinishedAt())
      .thenReturn(FIXED_INSTANT.minus(Duration.ofMinutes(5)).toString());
  var shouldDelete = kdr.shouldDeletePodWithoutRunState(WORKFLOW_INSTANCE, createdPod);
  assertThat(shouldDelete, is(true));
}