### Question:
HttpsFactory { public void setSystemSslProperties() { setSystemProperty("javax.net.ssl.keyStore", SecurityUtils.replaceFourSlashes(config.getKeyStore())); setSystemProperty("javax.net.ssl.keyStorePassword", config.getKeyStorePassword() == null ? null : String.valueOf(config.getKeyStorePassword())); setSystemProperty("javax.net.ssl.keyStoreType", config.getKeyStoreType()); setSystemProperty("javax.net.ssl.trustStore", SecurityUtils.replaceFourSlashes(config.getTrustStore())); setSystemProperty("javax.net.ssl.trustStorePassword", config.getTrustStorePassword() == null ? null : String.valueOf(config.getTrustStorePassword())); setSystemProperty("javax.net.ssl.trustStoreType", config.getTrustStoreType()); } HttpsFactory(HttpsConfig httpsConfig); CloseableHttpClient createSecureHttpClient(); ConnectionSocketFactory createSslSocketFactory(); SSLContext createSslContext(); void setSystemSslProperties(); HostnameVerifier createHostnameVerifier(); EurekaJerseyClientBuilder createEurekaJerseyClientBuilder(String eurekaServerUrl, String serviceId);  }### Answer:
@Test public void shouldSetSystemSslProperties() { HttpsConfig httpsConfig = httpsConfigBuilder.build(); HttpsFactory httpsFactory = new HttpsFactory(httpsConfig); httpsFactory.setSystemSslProperties(); assertEquals(SecurityUtils.replaceFourSlashes(httpsConfig.getKeyStore()), System.getProperty("javax.net.ssl.keyStore")); assertEquals(String.valueOf(httpsConfig.getKeyStorePassword()), System.getProperty("javax.net.ssl.keyStorePassword")); assertEquals(httpsConfig.getKeyStoreType(), System.getProperty("javax.net.ssl.keyStoreType")); assertEquals(SecurityUtils.replaceFourSlashes(httpsConfig.getTrustStore()), System.getProperty("javax.net.ssl.trustStore")); assertEquals(String.valueOf(httpsConfig.getTrustStorePassword()), System.getProperty("javax.net.ssl.trustStorePassword")); assertEquals(httpsConfig.getTrustStoreType(), System.getProperty("javax.net.ssl.trustStoreType")); }