List<ContentBody> body = new ArrayList<ContentBody>();
MessageStore messageStore = new SkeletonMessageStore();
// channel can be null since it is only used in ack processing which does not apply to this test
TransactionalContext txContext = new NonTransactionalContext(messageStore, null,
new LinkedList<RequiredDeliveryException>());
body.add(new ContentBody());
MessageHandleFactory factory = new MessageHandleFactory();
for (int i = 0; i < count; i++)
{
// this routes and delivers the message
AMQMessage msg = new AMQMessage(i, publish, txContext, header, queues, body, messageStore,