@Test
public void shouldHandlePodWithoutAnnotationsWhenPolling()  {

  // Create a pod instance with null `annotations` field - not possible through builder
  final Pod pod = Json.OBJECT_MAPPER.convertValue(
      Map.of("metadata",
          Map.of("name", "foobar")), Pod.class);
  assertThat(pod.getMetadata().getAnnotations(), is(nullValue()));
  when(k8sClient.getPod("foobar")).thenReturn(Optional.of(pod));
  when(podList.getItems()).thenReturn(List.of(pod));
  assertThat(Try.run(() -> kdr.tryCleanupPods()).isSuccess(), is(true));
}