client.send(createTestMessageExchange(1));
client.send(createTestMessageExchange(3));
client.send(createTestMessageExchange(5));
client.send(createTestMessageExchange(2));
MessageList ml = receiver.getMessageList();
ml.waitForMessagesToArrive(numMessages);
assertEquals("wrong number of messages", numMessages, ml.getMessageCount());
for (int i = 0; i < numMessages; i++) {
assertSequenceProperties((NormalizedMessage)ml.getMessages().get(i), i + 1);
}
for (int i = 0; i < numMessages; i++) {