final TransactionId xid = XIDGenerator.createXID(100);
assertNull(context.getTransactions().get(xid));
this.processor.beginTransaction(context, xid, 0);
this.replay();
this.processor.processPutCommand(new PutCommand("topic1", 2, "hello".getBytes(), xid, 0, 1), context, null);
this.processor.processPutCommand(new PutCommand("topic1", 2, "world".getBytes(), xid, 0, 1), context, null);
MessageStore store = this.messageStoreManager.getOrCreateMessageStore("topic1", 2);
store.flush();
assertEquals(0, store.getSizeInBytes());
assertEquals(0, this.processor.getPreparedTransactions(context, XIDGenerator.UNIQUE_QUALIFIER).length);