@Test
public void testGetServerHostName() throws UnknownHostException {

    PrivateKey key = Crypto.loadPrivateKey(servicePrivateKeyStringK1);
    SimpleServiceIdentityProvider simpleServiceIdentityProvider = new SimpleServiceIdentityProvider("coretech",
            "athenz", key, "1");
    SimpleServiceIdentityProvider provider = Mockito.spy(simpleServiceIdentityProvider);
    doThrow(UnknownHostException.class).when(provider).getLocalHost();
    assertEquals(provider.getServerHostName(), "localhost");
}