@Test
void checkWithTooManyRestarts() {

    var pod = pod("Running");
    KubePodList.ContainerStatus status = pod.status.containerStatuses.get(0);
    status.ready = Boolean.FALSE;
    status.restartCount = 5;
    assertThat(job.check(pod, ZonedDateTime.now())).isEqualTo("pod restarted too many times, restart=5");
    status.ready = Boolean.TRUE;
    assertThat(job.check(pod, ZonedDateTime.now())).isNull();
}