for (int i = 0; i < 10; i++) {
InOut inOut = client.createInOutExchange(service, null, null);
NormalizedMessage inMessage = inOut.createMessage();
inMessage.setContent(new StringSource("<test id='" + i + "'/>"));
inOut.setInMessage(inMessage);
client.send(inOut);
inOut = (InOut) client.receive(1000);
assertNotNull(inOut.getOutMessage());
client.done(inOut);
}
}