@Test
public void testEndpointsWithoutTargetRefsAllNamespaces() {

	EndpointsList endpoints = createSingleEndpointEndpointListByPodName("api-pod");
	endpoints.getItems().get(0).getSubsets().get(0).getAddresses().get(0).setTargetRef(null);
	when(this.endpointsOperation.list()).thenReturn(endpoints);
	when(this.kubernetesClient.endpoints()).thenReturn(this.endpointsOperation);
	when(this.kubernetesClient.endpoints().inAnyNamespace()).thenReturn(this.endpointsOperation);
	when(this.kubernetesClient.endpoints().inAnyNamespace().withLabels(anyMap()))
			.thenReturn(this.endpointsOperation);
	this.underTest.catalogServicesWatch();
	// second execution on shuffleServices
	this.underTest.catalogServicesWatch();
	verify(this.applicationEventPublisher).publishEvent(any(HeartbeatEvent.class));
}