@Test
public void testLeadingErrorAndInterrupted() {

    LogRecord r1 = new LogRecord(Level.INFO, Level.INFO.toString());
    LogRecord r2 = new LogRecord(Level.INFO, Level.INFO.toString());
    swapSeq(r1, r2);
    assertEquals(r1.getLevel(), r2.getLevel());
    assertTrue(r1.getSequenceNumber() > r2.getSequenceNumber());
    r1.setThrown(headIeChain(new Error()));
    r2.setThrown(new Error(headIeChain(null)));
    assertRecordLessThan(r1, r2);
    r1.setThrown(headIeChain(new RuntimeException()));
    r2.setThrown(new Error(headIeChain(null)));
    assertRecordLessThan(r1, r2);
    r1.setThrown(headIeChain(new Exception()));
    r2.setThrown(new Error(headIeChain(null)));
    assertRecordLessThan(r1, r2);
}