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

    CollectorFormatter f = new CollectorFormatter("{1}", (Formatter) null,
            (Comparator<LogRecord>) null);
    f.format((LogRecord) null);
}