private List<Server> testUsesIpAddr(boolean globalSpecified, boolean global, boolean clientSpecified, boolean client) throws Exception{
    	if (globalSpecified) {
            ConfigurationManager.getConfigInstance().setProperty("ribbon.UseIPAddrForServer", global);
    	}
    	else {
    		ConfigurationManager.getConfigInstance().clearProperty("ribbon.UseIPAddrForServer");
    	}
    	if (clientSpecified) {
    		ConfigurationManager.getConfigInstance().setProperty("DiscoveryEnabled.testUsesIpAddr.ribbon.UseIPAddrForServer", client);
    	}
    	else {
    		ConfigurationManager.getConfigInstance().clearProperty("DiscoveryEnabled.testUsesIpAddr.ribbon.UseIPAddrForServer");
    	}
    	System.out.println("r = " + ConfigurationManager.getConfigInstance().getProperty("ribbon.UseIPAddrForServer"));
    	System.out.println("d = " + ConfigurationManager.getConfigInstance().getProperty("DiscoveryEnabled.testUsesIpAddr.ribbon.UseIPAddrForServer"));
    	
        ConfigurationManager.getConfigInstance().setProperty("DiscoveryEnabled.testUsesIpAddr.ribbon.NIWSServerListClassName", DiscoveryEnabledNIWSServerList.class.getName());
        ConfigurationManager.getConfigInstance().setProperty("DiscoveryEnabled.testUsesIpAddr.ribbon.DeploymentContextBasedVipAddresses", "dummy");
        ConfigurationManager.getConfigInstance().setProperty("DiscoveryEnabled.testUsesIpAddr.ribbon.TargetRegion", "region");
        
        DiscoveryEnabledNIWSServerList deList = new DiscoveryEnabledNIWSServerList("TESTVIP:8080");

        DefaultClientConfigImpl clientConfig = DefaultClientConfigImpl.class.newInstance();
        clientConfig.loadProperties("DiscoveryEnabled.testUsesIpAddr");
        deList.initWithNiwsConfig(clientConfig);

        List<DiscoveryEnabledServer> serverList = deList.getInitialListOfServers();

        Assert.assertEquals(2, serverList.size());
        List<Server> servers = new ArrayList<Server>();
        for (DiscoveryEnabledServer server : serverList) {
        	servers.add((Server)server);
        }
        return servers;
    }
Generic method to help with various tests
@param globalspecified if false, will clear property DiscoveryEnabledNIWSServerList.useIpAddr
@param global value of DiscoveryEnabledNIWSServerList.useIpAddr
@param clientspecified if false, will not set property on client config
@param client value of client.namespace.ribbon.UseIPAddrForServer
ribbon-eureka/src/test/java/com/netflix/niws/loadbalancer/DiscoveryEnabledLoadBalancerSupportsUseIpAddrTest.java