resty.text(String.format("https://localhost:%d%s", getPort(), HelloWorldTestResource.HELLO_WORLD_PATH));
}
@Test(expected = SSLHandshakeException.class)
public void shouldFailWhenCertificateHostnameDoesNotMatchAndHostnameIsNotIgnored() throws Exception {
HttpsURLConnection.setDefaultSSLSocketFactory(new SSLSocketFactoryImpl());
HttpsURLConnection.setDefaultHostnameVerifier(AllowAllHostnameVerifier.ALLOW_ALL_HOSTNAMES);
startServer("us/monoid/web/ssl/test-ssl-hostname-eq-site.com.keystore");
Resty resty = new Resty();