}
}
private HTTPTransportFactory createTransportFactory() throws BusException {
EasyMock.reset(bus);
Configuration bc = EasyMock.createMock(Configuration.class);
String transportId = "http://celtix.objectweb.org/transports/http/configuration";
ObjectFactory of = new ObjectFactory();
ClassNamespaceMappingListType mappings = of.createClassNamespaceMappingListType();
ClassNamespaceMappingType mapping = of.createClassNamespaceMappingType();
mapping.setClassname("org.objectweb.celtix.bus.transports.http.HTTPTransportFactory");
mapping.getNamespace().add(transportId);
mappings.getMap().add(mapping);
bus.getWSDLManager();
EasyMock.expectLastCall().andReturn(wsdlManager);
bus.getWSDLManager();
EasyMock.expectLastCall().andReturn(wsdlManager);
bus.getWSDLManager();
EasyMock.expectLastCall().andReturn(wsdlManager);
BusLifeCycleManager lifecycleManager = EasyMock.createNiceMock(BusLifeCycleManager.class);
bus.getLifeCycleManager();
EasyMock.expectLastCall().andReturn(lifecycleManager);
bus.getConfiguration();
EasyMock.expectLastCall().andReturn(bc);
bc.getObject("transportFactories");
EasyMock.expectLastCall().andReturn(mappings);
// check the transportFactoryManager create event
checkBusCreatedEvent();
EasyMock.replay(bus);
EasyMock.replay(bc);