TestTrustVerifierCtxSSL ctx = new TestTrustVerifierCtxSSL();
if (!verifier.isTrustedObject(httpsEndpoint,ctx)){
throw new TestException("HttpsEndpoint instance"
+ " with no socket factory is considered untrusted");
}
SslEndpoint sslEndpoint = SslEndpoint.getInstance(
InetAddress.getLocalHost().getHostAddress(), port);
if (!verifier.isTrustedObject(sslEndpoint,ctx)){
throw new TestException("SslEndpoint instance"
+ " with no socket factory is considered untrusted");
}