assertEquals("CamelCxfClientImpl should has the same bus with CxfEndpoint", newBus, client.getBus());
}
@Test
public void testCxfEndpointConfigurer() throws Exception {
SimpleRegistry registry = new SimpleRegistry();
CxfEndpointConfigurer configurer = EasyMock.createMock(CxfEndpointConfigurer.class);
Processor processor = EasyMock.createMock(Processor.class);
registry.put("myConfigurer", configurer);
CamelContext camelContext = new DefaultCamelContext(registry);
CxfComponent cxfComponent = new CxfComponent(camelContext);
CxfEndpoint endpoint = (CxfEndpoint)cxfComponent.createEndpoint(routerEndpointURI + "&cxfEndpointConfigurer=#myConfigurer");
configurer.configure(EasyMock.isA(AbstractWSDLBasedEndpointFactory.class));