@Test(expected = NullPointerException.class)
public void testApplyNullAndLogRecord() {

    CollectorFormatter f = new CollectorFormatter("{3}", (Formatter) null,
            (Comparator<LogRecord>) null);
    f.apply((LogRecord) null, new LogRecord(Level.SEVERE, ""));
}