ServiceMixClient c = container.getClientFactory().createClient();
InOut me = c.createInOutExchange();
me.getInMessage().setContent(new StringSource("<hello/>"));
me.setService(new QName("echo"));
c.sendSync(me);
c.done(me);
assertEquals(6, listener.events.size());
}
public static class TestListener implements ExchangeListener {