Exchange me = EasyMock.createMock(Exchange.class);
EasyMock.expect(me.getOperation()).andReturn(new QName("urn:test", "SayHi")).times(4);
EasyMock.replay(me);
msg.put(Exchange.class, me);
TestApplicationContext ctx = new TestApplicationContext(new String[] {
S1, S2 });
ConfigurerImpl cfg = new ConfigurerImpl(ctx);
Bus bus = (Bus) ctx.getBean(Bus.DEFAULT_BUS_ID);
bus.setExtension(cfg, Configurer.class);
assertNotNull(bus.getExtension(BindingFactoryManager.class).getBindingFactory(NMRConstants.NS_NMR_BINDING));
EndpointInfo endpointInfo = new EndpointInfo();
endpointInfo.setBinding(new NMRBindingInfo(null, NMRConstants.NS_NMR_BINDING));