}
public void testProxy() throws Exception {
container.start();
Jsr181Component component1 = new Jsr181Component();
Jsr181Endpoint endpoint1 = new Jsr181Endpoint();
endpoint1.setPojo(new EchoService());
component1.setEndpoints(new Jsr181Endpoint[] { endpoint1 });
container.activateComponent(component1, "JSR181Component-1");
Jsr181Component component2 = new Jsr181Component();
Jsr181Endpoint endpoint2 = new Jsr181Endpoint();
endpoint2.setPojo(new ProxyPojoService());
endpoint2.setServiceInterface(ProxyPojo.class.getName());
component2.setEndpoints(new Jsr181Endpoint[] { endpoint2 });
container.activateComponent(component2, "JSR181Component-2");
DefaultServiceMixClient client = new DefaultServiceMixClient(container);
InOut me = client.createInOutExchange();
me.setInterfaceName(new QName("http://xfire.jsr181.servicemix.apache.org", "ProxyPojoPortType"));