@Test
public void testFormatLevel() {

    CompactFormatter cf = new CompactFormatter();
    LogRecord record = new LogRecord(Level.SEVERE, "");
    String result = cf.formatLevel(record);
    assertEquals(record.getLevel().getLocalizedName(), result);
}