HotRodServerConfigurationBuilder serverBuilder = HotRodTestingUtil.getDefaultHotRodConfiguration();
ClassLoader tccl = Thread.currentThread().getContextClassLoader();
String keyStoreFileName = tccl.getResource("keystore.jks").getPath();
String trustStoreFileName = tccl.getResource("truststore.jks").getPath();
serverBuilder.ssl()
.enabled(sslServer)
.keyStoreFileName(keyStoreFileName)
.keyStorePassword("secret".toCharArray())
.trustStoreFileName(trustStoreFileName)
.trustStorePassword("secret".toCharArray());