@Test
public void testLookupZMSUrl() throws Exception {

    
    System.setProperty(ZMSClient.ZMS_CLIENT_PROP_ATHENZ_CONF, "src/test/resources/athenz.conf");
    ZMSClient client = new ZMSClient(getZMSUrl());
    assertEquals(client.lookupZMSUrl(), "https://server-zms.athenzcompany.com:4443/");
    System.clearProperty(ZMSClient.ZMS_CLIENT_PROP_ATHENZ_CONF);
    client.close();
    final String envValue = System.getenv("ROOT");
    setEnv("ROOT", "/home/athenz");
    System.setProperty(ZMSClient.ZMS_CLIENT_PROP_ATHENZ_CONF, "src/test/resources/athenz.conf");
    client = new ZMSClient();
    assertEquals(client.lookupZMSUrl(), "https://server-zms.athenzcompany.com:4443/");
    System.clearProperty(ZMSClient.ZMS_CLIENT_PROP_ATHENZ_CONF);
    client.close();
    setEnv("ROOT", envValue);
}