final LocalTransactionId xid = new LocalTransactionId("test", 1);
final MessageStore store = this.messageStoreManager.getOrCreateMessageStore("topic1", 2);
this.transactionStore.addMessage(store, 1, new PutCommand("topic1", 2, "msg1".getBytes(), xid, 0, 1), null);
this.transactionStore.addMessage(store, 1, new PutCommand("topic1", 2, "msg2".getBytes(), xid, 0, 2), null);
final Tx tx = this.transactionStore.getInflyTx(xid);
assertNotNull(tx);
final PutCommand[] commands = tx.getRequests();
assertNotNull(commands);
assertEquals(2, commands.length);
store.flush();
// ��û��д��
assertEquals(0, store.getSizeInBytes());