@Test
public void getServicesShouldReturnAllServicesWhenNoLabelsAreAppliedToTheClient() {

	mockServer.expect().get().withPath("/api/v1/namespaces/test/services").andReturn(200, new ServiceListBuilder()
			.addNewItem().withNewMetadata().withName("s1").withLabels(new HashMap<String, String>() {
				{
					put("label", "value");
				}
			}).endMetadata().endItem().addNewItem().withNewMetadata().withName("s2")
			.withLabels(new HashMap<String, String>() {
				{
					put("label", "value");
					put("label2", "value2");
				}
			}).endMetadata().endItem().addNewItem().withNewMetadata().withName("s3").endMetadata().endItem()
			.build()).once();
	final KubernetesDiscoveryProperties properties = new KubernetesDiscoveryProperties();
	final DiscoveryClient discoveryClient = new KubernetesDiscoveryClient(mockClient, properties,
			KubernetesClient::services, new DefaultIsServicePortSecureResolver(properties));
	final List<String> services = discoveryClient.getServices();
	assertThat(services).containsOnly("s1", "s2", "s3");
}