config.put(SSLSocketBuilder.REMOTING_TRUST_STORE_TYPE, "JKS");
String trustStoreFilePath = getTruststoreFilePath();
config.put(SSLSocketBuilder.REMOTING_TRUST_STORE_FILE_PATH, trustStoreFilePath);
config.put(SSLSocketBuilder.REMOTING_TRUST_STORE_PASSWORD, "unit-tests-client");
config.put(SSLSocketBuilder.REMOTING_SSL_PROTOCOL, "SSL");
SSLSocketBuilder builder = new SSLSocketBuilder(config);
builder.setUseSSLServerSocketFactory(false);
SSLServerSocketFactoryService service = new SSLServerSocketFactoryService();
service.setSSLSocketBuilder(builder);
service.start();
return service;
}