inQueue.offer(testEvent, 0, 10);
persistentTransactionContext.poll(inQueue, 10);
txLog.close();
txLog = new LocalTxQueueTransactionJournal(temporaryFolder.getRoot().getAbsolutePath(), muleContext);
LocalTxQueueTransactionRecoverer queueTransactionRecoverer = new LocalTxQueueTransactionRecoverer(txLog, createQueueProvider(inQueue));
queueTransactionRecoverer.recover();
Serializable muleEvent = inQueue.poll(10);
assertThat(muleEvent, notNullValue());
assertThat(testEvent.equals(muleEvent), is(true));
muleEvent = inQueue.poll(10);
assertThat(muleEvent, IsNull.nullValue());