@Test
public void testGetServerHostname() throws UnknownHostException {

    InetAddress localhost = java.net.InetAddress.getLocalHost();
    final String serverHostName = localhost.getCanonicalHostName();
    assertEquals(serverHostName, ZTSImpl.getServerHostName());
    System.setProperty(ZTSConsts.ZTS_PROP_HOSTNAME, "server1.athenz");
    assertEquals("server1.athenz", ZTSImpl.getServerHostName());
    System.clearProperty(ZTSConsts.ZTS_PROP_HOSTNAME);
}