public void test() throws Exception {
DefaultServiceMixClient client = new DefaultServiceMixClient(jbi);
InOut me = client.createInOutExchange();
me.setInterfaceName(new QName("http://test", "EchoPortType"));
me.getInMessage().setContent(new StringSource("<echo xmlns='http://test'><echoin0>world</echoin0></echo>"));
client.sendSync(me);
if (me.getStatus() == ExchangeStatus.ERROR) {
if (me.getFault() != null) {
fail("Received fault: " + new SourceTransformer().toString(me.getFault().getContent()));
} else if (me.getError() != null) {
throw me.getError();