@Test
public void testGetConnection() throws IOException {

    final String oldConf = System.setProperty(JwtsSigningKeyResolver.ZTS_PROP_ATHENZ_CONF,
            "src/test/resources/athenz.conf");
    JwtsSigningKeyResolver resolver = new JwtsSigningKeyResolver(null, null);
    URLConnection con = resolver.getConnection("https://localhost:4443");
    assertNotNull(con);
    if (oldConf == null) {
        System.clearProperty(JwtsSigningKeyResolver.ZTS_PROP_ATHENZ_CONF);
    } else {
        System.setProperty(JwtsSigningKeyResolver.ZTS_PROP_ATHENZ_CONF, oldConf);
    }
}