apply patch for: https://issues.apache.org/jira/browse/AMQ-4254 Add call to broker.waitUntilStopped() to try to make this pass more often.