StringUtils { public static String escapeJava(final String s) { return javaEscaper.escape(s); }  static String replace(final String string, final String target, final String replacement); static boolean contains(final String name, final String target); static boolean isMatchCamelCase(final String name, final String target); static String getChecksum(final String s); static String escapeJava(final String s);  }
@Test public void testEscapeJava() { assertEquals("\\\" test ", StringUtils.escapeJava("\" test ")); assertEquals("\\\'test\\\'", StringUtils.escapeJava("\'test\'")); }