### Question:
XSLTHelper { public static String quoteEOLEscapedStringForClojure(String value) { if (value == null) { return "nil"; } final StringBuilder result = new StringBuilder(); result.append('"').append(escape(value, true)).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 testQuoteEOLEscapedStringForClojure() throws Exception { assertEquals("nil", XSLTHelper.quoteEOLEscapedStringForClojure(null)); assertEquals("\"\"", XSLTHelper.quoteEOLEscapedStringForClojure("")); assertEquals("\"\\\"\"", XSLTHelper.quoteEOLEscapedStringForClojure("\"")); assertEquals("\"foo\"", XSLTHelper.quoteEOLEscapedStringForClojure("foo")); assertEquals("\"foo\\'\"", XSLTHelper.quoteEOLEscapedStringForClojure("foo'")); }