public void testSslVerifyHostNameTurnedOffViaSystemProperty() throws Exception
{
setTestSystemProperty(ClientProperties.CONNECTION_OPTION_SSL_VERIFY_HOST_NAME, "false");
String brokerURL = "tcp://localhost:5672?ssl='true'";
AMQBrokerDetails broker = new AMQBrokerDetails(brokerURL);
ConnectionSettings connectionSettings = broker.buildConnectionSettings();
assertFalse(String.format("Unexpected '%s' option value", BrokerDetails.OPTIONS_SSL_VERIFY_HOSTNAME),
connectionSettings.isVerifyHostname());
assertNull(String.format("Unexpected '%s' property value", BrokerDetails.OPTIONS_SSL_VERIFY_HOSTNAME),
broker.getProperty(BrokerDetails.OPTIONS_SSL_VERIFY_HOSTNAME));
}