@Test
public void testApplyWithComparator() {

    CollectorFormatter f = new CollectorFormatter("{3}", (Formatter) null,
            SeverityComparator.getInstance());
    LogRecord first = new LogRecord(Level.SEVERE, "");
    LogRecord second = new LogRecord(Level.WARNING, "");
    assertSame(first, f.apply(first, second));
}