eip.setEndpoints(new EIPEndpoint[] { ep });
eip.init(new ComponentContextImpl(reg, new SimpleComponentWrapper(eip),
new HashMap<String, Object>()));
eip.getLifeCycle().start();
Channel channel = smx.createChannel();
Exchange e = channel.createExchange(Pattern.InOnly);
e.getIn().setBody("<hello/>");
e.setTarget(smx.getEndpointRegistry().lookup(ServiceHelper.createMap(Endpoint.NAME, "{uri:foo}bar:ep")));
channel.sendSync(e);
if (e.getError() != null) {