### Question:
HttpsFactory { public EurekaJerseyClientBuilder createEurekaJerseyClientBuilder(String eurekaServerUrl, String serviceId) { EurekaJerseyClientBuilder builder = new EurekaJerseyClientBuilder(); builder.withClientName(serviceId); builder.withMaxTotalConnections(10); builder.withMaxConnectionsPerHost(10); if (eurekaServerUrl.startsWith("http: apimlLog.log("org.zowe.apiml.common.insecureHttpWarning"); } else { System.setProperty("com.netflix.eureka.shouldSSLConnectionsUseSystemSocketFactory", "true"); setSystemSslProperties(); builder.withCustomSSL(createSecureSslContext()); builder.withHostnameVerifier(createHostnameVerifier()); } return builder; } HttpsFactory(HttpsConfig httpsConfig); CloseableHttpClient createSecureHttpClient(); ConnectionSocketFactory createSslSocketFactory(); SSLContext createSslContext(); void setSystemSslProperties(); HostnameVerifier createHostnameVerifier(); EurekaJerseyClientBuilder createEurekaJerseyClientBuilder(String eurekaServerUrl, String serviceId);  }### Answer:
@Test public void shouldCreateEurekaJerseyClientBuilderForHttps() { HttpsConfig httpsConfig = httpsConfigBuilder.build(); HttpsFactory httpsFactory = new HttpsFactory(httpsConfig); EurekaJerseyClientImpl.EurekaJerseyClientBuilder clientBuilder = httpsFactory.createEurekaJerseyClientBuilder("https" + EUREKA_URL_NO_SCHEME, TEST_SERVICE_ID); assertNotNull(clientBuilder); }
@Test public void shouldCreateEurekaJerseyClientBuilderForHttp() { HttpsConfig httpsConfig = httpsConfigBuilder.build(); HttpsFactory httpsFactory = new HttpsFactory(httpsConfig); EurekaJerseyClientImpl.EurekaJerseyClientBuilder clientBuilder = httpsFactory.createEurekaJerseyClientBuilder("http" + EUREKA_URL_NO_SCHEME, TEST_SERVICE_ID); assertNotNull(clientBuilder); }