EscapeUtils { public static String escapeLineBreak(@Nullable String line) { if (line == null) { return null; } if (escapingRequired(line)) { line = escape(line); } return line; }  static String escapeLineBreak(@Nullable String line); static String unescapeLineBreaks(@Nullable String line);  }
@Test public void noOp() throws Exception{ assertEquals(null, EscapeUtils.escapeLineBreak(null)); assertEquals("abc", EscapeUtils.escapeLineBreak("abc")); assertEquals("", EscapeUtils.escapeLineBreak("")); assertEquals("some text with multi byte 田中 characters.", EscapeUtils.escapeLineBreak("some text with multi byte 田中 characters.")); }