{
doSetup(batch, useBinaryStream, trailingByte, 100);
Channel channel = new SimpleChannel(0, ms);
TransactionRepository txRep = new TransactionRepository(pm, ms, 0);
txRep.start();
Message[] messages = createMessages(10);
Message m1 = messages[0];
Message m2 = messages[1];
Message m3 = messages[2];
Message m4 = messages[3];
Message m5 = messages[4];
Transaction tx = null;
if (xa)
{
tx = txRep.createTransaction(new MockXid());
}
else
{
tx = txRep.createTransaction();
}
MessageReference ref1 = ms.reference(m1);
MessageReference ref2 = ms.reference(m2);
MessageReference ref3 = ms.reference(m3);