@Test
public void testTransactionManagerFromBus() throws XAException, NamingException {
Bus bus = BusFactory.newInstance().createBus();
ConfiguredBeanLocator cbl = bus.getExtension(ConfiguredBeanLocator.class);
MyBeanLocator mybl = new MyBeanLocator(cbl);
bus.setExtension(mybl, ConfiguredBeanLocator.class);
TransactionManager tmExpected = new GeronimoTransactionManager();
mybl.register("tm", tmExpected);
tmByName(bus, tmExpected);
tmByClass(bus, tmExpected);
}