for (int i = 0; i < NUMBER; i++) {
InOnly me = client.createInOnlyExchange();
me.setService(new QName("urn:test", "service"));
NormalizedMessage message = me.getInMessage();
message.setProperty(DefaultFileMarshaler.FILE_NAME_PROPERTY, "test" + i + ".xml");
message.setContent(new StringSource(sb.toString()));
client.sendSync(me);
}
Receiver receiver = (Receiver) getBean("receiver");
receiver.getMessageList().assertMessagesReceived(NUMBER);