Source:
<code>private void startServer(DataNodeId dataNodeId, String sslEnabledDatacenters) throws IOException, InstantiationException, URISyntaxException { Properties props = new Properties(); props.setProperty("host.name", dataNodeId.getHostname()); props.setProperty("port", Integer.toString(dataNodeId.getPort())); props.setProperty("store.data.flush.interval.seconds", "1"); props.setProperty("store.deleted.message.retention.days", "0"); props.setProperty("store.enable.hard.delete", "true"); props.setProperty("replication.token.flush.interval.seconds", "5"); props.setProperty("replication.wait.time.between.replicas.ms", "50"); props.setProperty("replication.validate.message.stream", "true"); props.setProperty("replication.ssl.enabled.datacenters", sslEnabledDatacenters); props.setProperty("replication.ssl.protocol", "TLS"); props.setProperty("replication.ssl.keystore.type", "JKS"); <START> ClassLoader cl = MockCluster.class.getClassLoader(); <END> URL keyStoreUrl = cl.getResource("selfsigned-keystore.jks"); String keyStoreFilePath = new File(keyStoreUrl.toURI()).getAbsolutePath(); URL trustStoreUrl = cl.getResource("selfsigned-truststore.ts"); String trustStoreFilePath = new File(trustStoreUrl.toURI()).getAbsolutePath(); props.setProperty("replication.ssl.keystore.path", keyStoreFilePath); props.setProperty("replication.ssl.keystore.password", "unittestonly"); props.setProperty("replication.ssl.key.password", "unittestonly"); props.setProperty("replication.ssl.truststore.type", "JKS"); props.setProperty("replication.ssl.truststore.path", trustStoreFilePath); props.setProperty("replication.ssl.truststore.password", "unittestonly"); props.setProperty("replication.ssl.cipher.suites", "TLS_RSA_WITH_AES_128_CBC_SHA256"); VerifiableProperties propverify = new VerifiableProperties(props); AmbryServer server = new AmbryServer(propverify, clusterMap, notificationSystem); serverList.add(server); server.startup(); }</code><technical_language>if time, a static method populate static values for server start</technical_language>

Target:
private void startServer(DataNodeId dataNodeId, String sslEnabledDatacenters) throws IOException, InstantiationException, URISyntaxException { Properties props = new Properties(); props.setProperty("host.name", dataNodeId.getHostname()); props.setProperty("port", Integer.toString(dataNodeId.getPort())); props.setProperty("store.data.flush.interval.seconds", "1"); props.setProperty("store.deleted.message.retention.days", "0"); props.setProperty("store.enable.hard.delete", "true"); props.setProperty("replication.token.flush.interval.seconds", "5"); props.setProperty("replication.wait.time.between.replicas.ms", "50"); props.setProperty("replication.validate.message.stream", "true"); props.setProperty("replication.ssl.enabled.datacenters", sslEnabledDatacenters); props.setProperty("replication.ssl.protocol", "TLS"); props.setProperty("replication.ssl.keystore.type", "JKS"); props.setProperty("replication.ssl.keystore.path", keyStoreFilePath); props.setProperty("replication.ssl.keystore.password", "unittestonly"); props.setProperty("replication.ssl.key.password", "unittestonly"); props.setProperty("replication.ssl.truststore.type", "JKS"); props.setProperty("replication.ssl.truststore.path", trustStoreFilePath); props.setProperty("replication.ssl.truststore.password", "unittestonly"); props.setProperty("replication.ssl.cipher.suites", "TLS_RSA_WITH_AES_128_CBC_SHA256"); VerifiableProperties propverify = new VerifiableProperties(props); AmbryServer server = new AmbryServer(propverify, clusterMap, notificationSystem); serverList.add(server); server.startup(); }