public void testMatchManagedConnectionsWithBoundConnections() throws Exception {
Subject subj = new Subject();
BusFactory bf = BusFactory.newInstance();
Bus bus = bf.createBus();
BusFactory.setDefaultBus(bus);
ManagedConnectionFactoryImpl factory = EasyMock.createMock(ManagedConnectionFactoryImpl.class);
factory.getBus();
// In ManagedConnectionImpl:
// one for getCXFServiceFromBus , another for createInvocationHandler