};
Map<String, Object> props = new HashMap<String, Object>();
props.put(Endpoint.SERVICE_NAME, new QName("target").toString());
smx.getEndpointRegistry().register(tep, props);
EIPComponent eip = new EIPComponent();
WireTap ep = new WireTap();
ep.setService(new QName("uri:foo", "bar"));
ep.setEndpoint("ep");
ep.setTarget(new ExchangeTarget());
ep.getTarget().setService(new QName("target"));
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")));