connection.close();
}
public void testUnsupportedSASLMechanism() throws Exception
{
BrokerDetails broker = getBroker();
broker.setProperty(BrokerDetails.OPTIONS_SASL_MECHS, "MY_MECH");
try
{
Connection connection = new AMQConnection(broker.toString(), "guest", "guest",
null, "test");
connection.close();
fail("The client should throw a ConnectionException stating the" +
" broker does not support the SASL mech specified by the client");
}