@Test
public void testAddAddCommit_CloseReplayAppend_CloseRecover() throws Exception {
final LocalTransactionId xid = new LocalTransactionId("test", 1);
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);
assertNotNull(this.transactionStore.getInflyTx(xid));
// commit
this.transactionStore.commit(xid, false);
store.flush();