@Test
public void twoLogFilesSecondIsCorruptedBeforeAfterCommit() throws IOException
{
int firstTxId = 2;
setupLogFiles( logFile( checkPoint() ), logFile( start(), commit( firstTxId ), start(), commit( 3 ) ) );
File highestLogFile = logFiles.getHighestLogFile();
fsRule.truncate( highestLogFile, fsRule.getFileSize( highestLogFile ) - 3 );
LogTailInformation logTailInformation = tailScanner.getTailInformation();
assertLatestCheckPoint( true, true, firstTxId, startLogVersion, logTailInformation );
}