@Test
public void testEventBodyAllNamespaces() throws Exception {

	when(this.endpointsOperation.list())
			.thenReturn(createSingleEndpointEndpointListByPodName("api-pod", "other-pod"));
	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();
	verify(this.applicationEventPublisher).publishEvent(this.heartbeatEventArgumentCaptor.capture());
	HeartbeatEvent event = this.heartbeatEventArgumentCaptor.getValue();
	assertThat(event.getValue()).isInstanceOf(List.class);
	List<String> expectedPodsList = Arrays.asList("api-pod", "other-pod");
	assertThat(event.getValue()).isEqualTo(expectedPodsList);
}