assertNotNull(m);
assertNoMessagesLeft(connection);
// Make sure the broker is shutdown when the connection is stopped.
assertNotNull(BrokerRegistry.getInstance().lookup("localhost"));
connection.stop();
assertNull(BrokerRegistry.getInstance().lookup("localhost"));
}
protected void setUp() throws Exception {
// Don't call super since it manually starts up a broker.