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

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