### Question:
TransactionLogFileReader { public void reset() throws IOException { raf.seek(resetFilePointer); } TransactionLogFileReader(File transactionLogFile); Transaction getNextTransaction(); void reset(); FileHeader getFileHeader(); File getTransactionLogFile();  }### Answer:
@Test public void resetTest() { Transaction t; long firstZxid; try { TransactionLogFileReader reader = new TransactionLogFileReader(txnLog1); t = reader.getNextTransaction(); firstZxid = t.getTxnHeader().getZxid(); reader.getNextTransaction(); reader.getNextTransaction(); reader.getNextTransaction(); reader.getNextTransaction(); reader.getNextTransaction(); reader.reset(); assertEquals(firstZxid, reader.getNextTransaction().getTxnHeader().getZxid()); } catch (IOException ex) { fail(); } }