@Test
public void testOfNpeVsIoe() {

    Throwable readFailed = new IOException();
    Throwable npe = new IOException().initCause(new NullPointerException());
    LogRecord r1 = new LogRecord(Level.INFO, Level.INFO.toString());
    LogRecord r2 = new LogRecord(Level.INFO, Level.INFO.toString());
    r1.setThrown(readFailed);
    r2.setThrown(npe);
    assertRecordLessThan(r1, r2);
    r1.setThrown(npe);
    r2.setThrown(readFailed);
    assertRecordLessThan(r2, r1);
}