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

    CompactFormatter cf = new CompactFormatter();
    cf.formatLoggerName((LogRecord) null);
    fail(cf.toString());
}