### Question:
StringEscapes { public static String escapeSql(String x) { if (x==null) return null; return x.replaceAll("'", "''"); }  static boolean isWrappedInDoubleQuotes(String s); static boolean isWrappedInSingleQuotes(String s); static boolean isWrappedInMatchingQuotes(String s); static String escapeUrlParam(String input); static String escapeHtmlFormUrl(String url); static String escapeSql(String x);  }### Answer:
@Test public void testEscapeSql() { Assert.assertEquals(StringEscapes.escapeSql("I've never been to Brooklyn"), "I''ve never been to Brooklyn"); }