@Test public void testConnectWithoutClientEncryption() throws Exception {
SSLConfiguration config = new SSLConfiguration();
config.setMode(SSLConfiguration.DISABLED);
SocketServerConnection conn = helpEstablishConnection(false, config, new Properties());
assertTrue(conn.selectServerInstance(false).getCryptor() instanceof NullCryptor);
conn.close();
}
private SocketServerConnection helpEstablishConnection(boolean secure) throws CommunicationException, ConnectionException {
return helpEstablishConnection(secure, new SSLConfiguration(), new Properties());