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));
Endpoint ep = new EndpointImpl(BusFactory.getDefaultBus(), null, endpointInfo);
msg.setExchange(new ExchangeImpl());
msg.getExchange().put(Endpoint.class, ep);
try {
interceptor.handleMessage(msg);