### Question:
HttpsFactory { public CloseableHttpClient createSecureHttpClient() { Registry<ConnectionSocketFactory> socketFactoryRegistry; RegistryBuilder<ConnectionSocketFactory> socketFactoryRegistryBuilder = RegistryBuilder .<ConnectionSocketFactory>create().register("http", PlainConnectionSocketFactory.getSocketFactory()); socketFactoryRegistryBuilder.register("https", createSslSocketFactory()); socketFactoryRegistry = socketFactoryRegistryBuilder.build(); PoolingHttpClientConnectionManager connectionManager = new PoolingHttpClientConnectionManager( Objects.requireNonNull(socketFactoryRegistry)); return HttpClientBuilder.create().setConnectionManager(connectionManager).disableCookieManagement() .disableAuthCaching().build(); } HttpsFactory(HttpsConfig httpsConfig); CloseableHttpClient createSecureHttpClient(); ConnectionSocketFactory createSslSocketFactory(); SSLContext createSslContext(); void setSystemSslProperties(); HostnameVerifier createHostnameVerifier(); EurekaJerseyClientBuilder createEurekaJerseyClientBuilder(String eurekaServerUrl, String serviceId);  }### Answer:
@Test public void shouldCreateSecureHttpClient() { HttpsConfig httpsConfig = httpsConfigBuilder.build(); HttpsFactory httpsFactory = new HttpsFactory(httpsConfig); HttpClient httpClient = httpsFactory.createSecureHttpClient(); assertEquals("org.apache.http.impl.client.InternalHttpClient", httpClient.getClass().getName()); }