broker = new BrokerService();
broker.setPersistent(false);
broker.setPopulateJMSXUserID(true);
broker.setUseAuthenticatedPrincipalForJMSXUserID(true);
broker.setUseJmx(false);
broker.setPersistenceAdapter(new MemoryPersistenceAdapter());
String brokerUri = "tcp://localhost:" + TestUtil.getNewPortNumber(AbstractJMSTester.class);
broker.addConnector(brokerUri);
broker.start();
bus = BusFactory.getDefaultBus();
ActiveMQConnectionFactory cf1 = new ActiveMQConnectionFactory(brokerUri);