@Test
public void testCompareThrownDoesNotApply() {

    SeverityComparator a = new SeverityComparator();
    Throwable tc1 = new Error(new Exception());
    Throwable tc2 = new Exception(new Exception());
    assertTrue(a.compareThrowable(tc1, tc2) > 0);
    assertTrue(a.compareThrowable(tc2, tc1) < 0);
    tc1 = new RuntimeException(tc1);
    assertTrue(a.compareThrowable(tc1, tc2) > 0);
    assertTrue(a.compareThrowable(tc2, tc1) < 0);
}