.setExpectedAction(ConnectionNotification.CONNECTION_FAILED).setNumberOfExecutionsRequired(3);
CustomConnectionFactory.returnInvalidConnections = true;
stopBroker();
connectionListener.waitUntilNotificationsAreReceived();
assertTrue(jmsConnector.isStopped());
// Restart the broker
CustomConnectionFactory.returnInvalidConnections = false;