Map<String, Object> props = new HashMap<String, Object>();
props.put(Endpoint.SERVICE_NAME, new QName("target"));
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, null, null, eip, new HashMap()));
eip.getLifeCycle().start();
Channel channel = smx.createChannel();