List<Endpoint> endpoints() {
        try {
            String urlString = String.format("%s/api/v1/namespaces/%s/pods", kubernetesMaster, namespace);
            return enrichWithPublicAddresses(parsePodsList(callGet(urlString)));
        } catch (RestClientException e) {
            return handleKnownException(e);
        }
    }
@Test(expected = KubernetesClientException.class)
    public void endpointsFailFastWhenLbServiceHasNoPublicAddress() throws JsonProcessingException {
        // given
        kubernetesClient = newKubernetesClient(ExposeExternallyMode.ENABLED, false, null, null);

        stub(String.format("/api/v1/namespaces/%s/pods", NAMESPACE), podsListResponse());
        stub(String.format("/api/v1/namespaces/%s/endpoints", NAMESPACE), endpointsListResponse());

        stub(String.format("/api/v1/namespaces/%s/services/service-0", NAMESPACE),
                serviceLbWithoutAddr(servicePort(0, 0, 0)));
        stub(String.format("/api/v1/namespaces/%s/services/hazelcast-0", NAMESPACE),
                serviceLbWithoutAddr(servicePort(0, 0, 0)));
        stub(String.format("/api/v1/namespaces/%s/services/service-1", NAMESPACE),
                serviceLbWithoutAddr(servicePort(0, 0, 0)));

        // when
        List<Endpoint> result = kubernetesClient.endpoints();

        // then
        // exception
    }