### Question:
HttpsFactory { public ConnectionSocketFactory createSslSocketFactory() { if (config.isVerifySslCertificatesOfServices()) { return createSecureSslSocketFactory(); } else { apimlLog.log("org.zowe.apiml.common.ignoringSsl"); return createIgnoringSslSocketFactory(); } } HttpsFactory(HttpsConfig httpsConfig); CloseableHttpClient createSecureHttpClient(); ConnectionSocketFactory createSslSocketFactory(); SSLContext createSslContext(); void setSystemSslProperties(); HostnameVerifier createHostnameVerifier(); EurekaJerseyClientBuilder createEurekaJerseyClientBuilder(String eurekaServerUrl, String serviceId);  }### Answer:
@Test public void shouldCreateSecureSslSocketFactory() { HttpsConfig httpsConfig = httpsConfigBuilder.build(); HttpsFactory httpsFactory = new HttpsFactory(httpsConfig); ConnectionSocketFactory socketFactory = httpsFactory.createSslSocketFactory(); assertEquals(SSLConnectionSocketFactory.class, socketFactory.getClass()); }
@Test public void shouldCreateIgnoringSslSocketFactory() throws KeyStoreException { HttpsConfig httpsConfig = httpsConfigBuilder.verifySslCertificatesOfServices(false).build(); HttpsFactory httpsFactory = new HttpsFactory(httpsConfig); ConnectionSocketFactory socketFactory = httpsFactory.createSslSocketFactory(); assertEquals(SSLConnectionSocketFactory.class, socketFactory.getClass()); assertFalse(httpsFactory.getUsedKeyStore().aliases().hasMoreElements()); }