@Test
public void testContext() throws Exception {
String s4 = getClass()
.getResource("/org/apache/cxf/transport/http_jetty/spring/beans.xml").toString();
TestApplicationContext ctx = new TestApplicationContext(
new String[] {S1, S2, S3, s4});
//ctx.refresh();
ConfigurerImpl cfg = new ConfigurerImpl(ctx);
EndpointInfo info = getEndpointInfo("bla", "Foo", "http://localhost:9000");
Bus bus = (Bus) ctx.getBean(Bus.DEFAULT_BUS_ID);
bus.setExtension(cfg, Configurer.class);
DestinationFactoryManager dfm = bus.getExtension(DestinationFactoryManager.class);
DestinationFactory factory = dfm.getDestinationFactory("http://schemas.xmlsoap.org/soap/http");
Destination d = factory.getDestination(info);