return cacheManager;
}
private void initServerAndClient(boolean sslServer, boolean sslClient) {
hotrodServer = new HotRodServer();
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());
hotrodServer.start(serverBuilder.build(), cacheManager);
log.info("Started server on port: " + hotrodServer.getPort());
ConfigurationBuilder clientBuilder = new ConfigurationBuilder();
clientBuilder
.addServer()