Source:
public void setup(String clientCiphers, String serverCiphers, boolean hasException, int serverPort) throws InterruptedException { Parameter paramClientCiphers = new Parameter("ciphers", clientCiphers); List<Parameter> clientParams = new ArrayList<>(); clientParams.add(paramClientCiphers); Parameter paramServerCiphers = new Parameter("ciphers", serverCiphers); List<Parameter> serverParams = new ArrayList<>(); serverParams.add(paramServerCiphers); TransportsConfiguration transportsConfiguration = TestUtil .getConfiguration("/simple-test-config" + File.separator + "netty-transports.yml"); Set<SenderConfiguration> senderConfig = transportsConfiguration.getSenderConfigurations(); senderConfig.forEach(config -> { config.setKeyStoreFile(keyStoreFile); config.setKeyStorePassword(password); config.setParameters(clientParams); }); HttpWsConnectorFactory factory = new HttpWsConnectorFactoryImpl(); ListenerConfiguration listenerConfiguration = ListenerConfiguration.getDefault(); listenerConfiguration.setPort(serverPort); listenerConfiguration.setVerifyClient(verifyClient); listenerConfiguration.setTrustStoreFile(trustStoreFile); listenerConfiguration.setKeyStoreFile(keyStoreFile); listenerConfiguration.setTrustStorePass(password); listenerConfiguration.setKeyStorePass(password); listenerConfiguration.setCertPass(password); listenerConfiguration.setScheme(scheme); listenerConfiguration.setParameters(serverParams); ServerConnector serverConnector = factory .createServerConnector(ServerBootstrapConfiguration.getInstance(), listenerConfiguration); ServerConnectorFuture future = serverConnector.start(); future.setHttpConnectorListener(new EchoMessageListener()); future.sync(); HttpWsConnectorFactory connectorFactory = new HttpWsConnectorFactoryImpl(); httpClientConnector = connectorFactory .createHttpClientConnector(HTTPConnectorUtil.getTransportProperties(transportsConfiguration), HTTPConnectorUtil.getSenderConfiguration(transportsConfiguration, Constants.HTTPS_SCHEME)); testCiphersuites(hasException, serverPort); serverConnector.stop(); httpClientConnector.close(); }

Target:
public void setup(String clientCiphers, String serverCiphers, boolean hasException, int serverPort) throws InterruptedException { Parameter paramClientCiphers = new Parameter("ciphers", clientCiphers); List<Parameter> clientParams = new ArrayList<>(); clientParams.add(paramClientCiphers); Parameter paramServerCiphers = new Parameter("ciphers", serverCiphers); List<Parameter> serverParams = new ArrayList<>(); serverParams.add(paramServerCiphers); TransportsConfiguration transportsConfiguration = TestUtil .getConfiguration("/simple-test-config" + File.separator + "netty-transports.yml"); Set<SenderConfiguration> senderConfig = transportsConfiguration.getSenderConfigurations(); senderConfig.forEach(config -> { config.setKeyStoreFile(keyStoreFile); config.setKeyStorePassword(password); config.setParameters(clientParams); }); HttpWsConnectorFactory factory = new HttpWsConnectorFactoryImpl(); ListenerConfiguration listenerConfiguration = ListenerConfiguration.getDefault(); listenerConfiguration.setPort(serverPort); listenerConfiguration.setVerifyClient(verifyClient); listenerConfiguration.setTrustStoreFile(trustStoreFile); listenerConfiguration.setKeyStoreFile(keyStoreFile); listenerConfiguration.setTrustStorePass(password); listenerConfiguration.setKeyStorePass(password); listenerConfiguration.setScheme(scheme); listenerConfiguration.setParameters(serverParams); ServerConnector serverConnector = factory .createServerConnector(ServerBootstrapConfiguration.getInstance(), listenerConfiguration); ServerConnectorFuture future = serverConnector.start(); future.setHttpConnectorListener(new EchoMessageListener()); future.sync(); httpClientConnector = factory .createHttpClientConnector(HTTPConnectorUtil.getTransportProperties(transportsConfiguration), HTTPConnectorUtil.getSenderConfiguration(transportsConfiguration, Constants.HTTPS_SCHEME)); testCiphersuites(hasException, serverPort); serverConnector.stop(); httpClientConnector.close(); }