@Test
public void testFormatWithMessage() {

    LogRecord record = new LogRecord(Level.SEVERE, "message");
    CompactFormatter cf = new CompactFormatter();
    String result = cf.format(record);
    assertTrue(result, result.startsWith(record.getMessage()));
    assertTrue(result, result.endsWith(LINE_SEP));
}