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
    public void portValuesForPodWithMultipleContainer() throws JsonProcessingException {
        PodList podList = new PodList();
        List<Pod> pods = new ArrayList<>();
        for (int i = 0; i <= 1; i++) {
            Pod pod = new PodBuilder()
                    .withMetadata(new ObjectMetaBuilder()
                            .withName("hazelcast-" + i)
                            .build())
                    .withSpec(new PodSpecBuilder()
                            .withContainers(new ContainerBuilder()
                                            .withName("hazelcast")
                                            .withPorts(new ContainerPortBuilder()
                                                    .withContainerPort(5701)
                                                    .withName("hazelcast")
                                                    .build())
                                            .build(),
                                    new ContainerBuilder()
                                            .withName("proxy")
                                            .withPorts(new ContainerPortBuilder()
                                                    .withContainerPort(5701)
                                                    .withName("proxy")
                                                    .build())
                                            .build())
                            .build())
                    .withStatus(new PodStatusBuilder()
                            .withContainerStatuses(new ContainerStatusBuilder().withReady().build())
                            .withPodIP(String.format("172.17.%d.5", i))
                            .build())
                    .build();
            pods.add(pod);
        }
        podList.setItems(pods);
        ObjectMapper mapper = new ObjectMapper();
        String prodsJsonResponse = mapper.writeValueAsString(podList);

        stub(String.format("/api/v1/namespaces/%s/pods", NAMESPACE), prodsJsonResponse);
        List<Endpoint> result = kubernetesClient.endpoints();
        assertThat(formatPrivate(result)).containsExactlyInAnyOrder(ready("172.17.0.5", 5701), ready("172.17.1.5", 5701));
    }