@Test
public void testByNullAndInterrupted() {

    LogRecord r1 = new LogRecord(Level.INFO, Level.INFO.toString());
    LogRecord r2 = new LogRecord(Level.INFO, Level.INFO.toString());
    assertEquals(r1.getLevel(), r2.getLevel());
    //Ensure Interrupted is less than null.
    r1.setThrown(headIeChain(null));
    assertNull(r2.getThrown());
    assertRecordLessThan(r1, r2);
    r1.setThrown(headIeChain(new Error()));
    assertNull(r2.getThrown());
    assertRecordLessThan(r1, r2);
    r1.setThrown(headIeChain(new RuntimeException()));
    assertNull(r2.getThrown());
    assertRecordLessThan(r1, r2);
    r1.setThrown(headIeChain(new Exception()));
    assertNull(r2.getThrown());
    assertRecordLessThan(r1, r2);
}