@Test
public void testDumpWithCrcError() throws Exception {

    // Arrange
    File logfile = new File(new File(mySnapDir, "version-2"), "log.42");
    TxnLogToolkit lt = new TxnLogToolkit(false, false, logfile.toString(), true);
    // Act
    lt.dump(null);
    // Assert
    String output = outContent.toString();
    Pattern p = Pattern.compile("^CRC ERROR.*session 0x8061fac5ddeb0000 cxid 0x0 zxid 0x8800000002 createSession 30000$", Pattern.MULTILINE);
    Matcher m = p.matcher(output);
    assertTrue("Output doesn't indicate CRC error for the broken session id: " + output, m.find());
}