public void testProxy() throws Exception {
container.start();
Jsr181SpringComponent component1 = new Jsr181SpringComponent();
Jsr181Endpoint endpoint1 = new Jsr181Endpoint();
endpoint1.setPojo(new EchoService());
component1.setEndpoints(new Jsr181Endpoint[] { endpoint1 });
container.activateComponent(component1, "JSR181Component-1");
Jsr181SpringComponent component2 = new Jsr181SpringComponent();
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();