List<Endpoint> endpointsByPodLabel(String podLabels, String podLabelValues) {
        try {
            String param = getLabelSelectorParameter(podLabels, podLabelValues);
            String urlString = String.format("%s/api/v1/namespaces/%s/pods?%s", kubernetesMaster, namespace, param);
            return enrichWithPublicAddresses(parsePodsList(callGet(urlString)));
        } catch (RestClientException e) {
            return handleKnownException(e);
        }
    }
@Test
    public void endpointsByNamespaceAndMultiplePodLabels() throws JsonProcessingException {
        // given
        String podLabel = "pod-label-1,pod-label-2";
        String podLabelValue = "pod-label-value-1,pod-label-value-2";
        Map<String, String> queryParams = singletonMap("labelSelector", "pod-label-1=pod-label-value-1,pod-label-2=pod-label-value-2");
        stub(String.format("/api/v1/namespaces/%s/pods", NAMESPACE), queryParams, podsList(Arrays.asList(
                new KubernetesClient.EndpointAddress("192.168.0.25", 5701),
                new KubernetesClient.EndpointAddress("172.17.0.5", 5702)
        )));
        stub(String.format("/api/v1/namespaces/%s/pods/hazelcast-0", NAMESPACE),
                pod("hazelcast-0", NAMESPACE, "node-name-1", 5701));
        stub(String.format("/api/v1/namespaces/%s/pods/hazelcast-1", NAMESPACE),
                pod("hazelcast-1", NAMESPACE, "node-name-2", 5701));

        // when
        List<Endpoint> result = kubernetesClient.endpointsByPodLabel(podLabel, podLabelValue);

        // then
        assertThat(formatPrivate(result)).containsExactlyInAnyOrder(ready("192.168.0.25", 5701), ready("172.17.0.5", 5702));
    }