@Test
public void testNewLine() {

  final LoggingEvent event = createMessageEvent("This message contains \n new lines");
  assertTrue(this.layout.format(event).equals("This message contains \\n new lines"));
}