@Test
void podIsKnownToJobManagement() {

    when(kubeControllerConfiguration.getPodUnknownGracePeriodMs()).thenReturn(POD_UNKNOWN_GRACE_PERIOD);
    V1Pod pod = new V1Pod()
            .metadata(new V1ObjectMeta().name(POD_NAME).creationTimestamp(new DateTime(clock.wallTime())))
            .status(new V1PodStatus().phase(RUNNING));
    clock.advanceTime(Duration.ofMillis(POD_UNKNOWN_GRACE_PERIOD + 1));
    Map<String, Task> currentTasks = Collections.singletonMap(POD_NAME, mock(Task.class));
    Assertions.assertThat(podGcController.isPodUnknownToJobManagement(pod, currentTasks)).isFalse();
}