}
@Test
public void testAddAddCloseRecover() throws Exception {
final LocalTransactionId xid1 = new LocalTransactionId("test", 1);
MessageStore store = this.messageStoreManager.getOrCreateMessageStore("topic1", 2);
this.transactionStore.addMessage(store, 1, new PutCommand("topic1", 2, "msg1".getBytes(), xid1, 0, 1), null);
this.transactionStore.addMessage(store, 1, new PutCommand("topic1", 2, "msg2".getBytes(), xid1, 0, 2), null);
final LocalTransactionId xid2 = new LocalTransactionId("test", 2);
store = this.messageStoreManager.getOrCreateMessageStore("topic1", 2);
this.transactionStore.addMessage(store, 1, new PutCommand("topic1", 2, "msg1".getBytes(), xid2, 0, 1), null);
this.tearDown();
this.init(this.path);