@Test
public void testReverseOrder() throws Exception {

    try {
        LogManagerProperties.reverseOrder(null);
        fail("Null was allowed.");
    } catch (NullPointerException expect) {
    }
    Comparator<LogRecord> c = new ErrorComparator();
    Comparator<LogRecord> r = LogManagerProperties.reverseOrder(c);
    assertTrue(c.getClass() != r.getClass());
    assertFalse(r instanceof ErrorComparator);
    assertFalse(r instanceof AscComparator);
    assertFalse(r instanceof DescComparator);
    c = new AscComparator();
    r = LogManagerProperties.reverseOrder(c);
    assertTrue(r instanceof DescComparator);
    c = new AscComparator();
    r = LogManagerProperties.reverseOrder(c);
    assertTrue(r instanceof DescComparator);
}