### Question:
XSLTHelper { public static String quoteForClojure(String value) { if (value == null) { return "nil"; } final StringBuilder result = new StringBuilder(); result.append('"').append(escape(value, false)).append('"'); return result.toString(); } XSLTHelper(); static String formatTime(String iso8601); static String quoteForPython(String value); static String quoteEOLEscapedStringForPython(String value); static String quoteForClojure(String value); static String quoteEOLEscapedStringForClojure(String value); static String summariseAsLine(String value, int maximumCharacters); static String escape(String value); static String indent(); static String newLine(); static String newLineAndIndent(); static String changeIndent(int indentChange); static String resetIndent(); static String base64ToPython(String base64String); static String base64ToClojure(String base64String); static void setIndentString(String indentString);  }### Answer:
@Test public void testQuoteForClojure() throws Exception { assertEquals("nil", XSLTHelper.quoteForClojure(null)); assertEquals("\"\"", XSLTHelper.quoteForClojure("")); assertEquals("\"\\\"\"", XSLTHelper.quoteForClojure("\"")); assertEquals("\"\\\"\"", XSLTHelper.quoteForClojure("\"")); assertEquals("\"foo\"", XSLTHelper.quoteForClojure("foo")); assertEquals("\"foo\\'\"", XSLTHelper.quoteForClojure("foo'")); assertEquals("\" \\\\ \"", XSLTHelper.quoteForClojure(" \\ ")); assertEquals("\"foo \n bah\"", XSLTHelper.quoteForClojure("foo \n bah")); assertEquals("\"foo \\r bah\"", XSLTHelper.quoteForClojure("foo \r bah")); assertEquals("\"foo \\\\n bah\"", XSLTHelper.quoteForClojure("foo \\n bah")); }