@Override
    public List<AwsEndpoint> getClusterEndpoints() {
        if (clientConfig.shouldUseDnsForFetchingServiceUrls()) {
            if (logger.isInfoEnabled()) {
                logger.info("Resolving eureka endpoints via DNS: {}", getDNSName());
            }
            return getClusterEndpointsFromDns();
        } else {
            logger.info("Resolving eureka endpoints via configuration");
            return getClusterEndpointsFromConfig();
        }
    }
@Test
    public void testReadFromConfig() {
        List<AwsEndpoint> endpoints = resolver.getClusterEndpoints();
        assertThat(endpoints.size(), equalTo(6));

		for (AwsEndpoint endpoint : endpoints) {
			if (endpoint.getZone().equals("us-east-1e")) {
				assertThat("secure was wrong", endpoint.isSecure(), is(true));
				assertThat("serviceUrl contains -1", endpoint.getServiceUrl().contains("-1"), is(false));
                assertThat("BASIC auth credentials expected", endpoint.getServiceUrl().contains("myuser:mypassword"), is(true));
			}
		}
    }