WriterUtil { public static void appendQuoted(StringBuilder b, String value) { b.append('"'); appendEscapingQuotes(b, value); b.append('"'); }  static void appendQuotedIfNonToken(StringBuilder b, String value); static void appendQuotedIfWhitespace(StringBuilder b, String value); static void appendQuoted(StringBuilder b, String value); static void appendEscapingQuotes(StringBuilder b, String value);  }
@Test public void testAppendQuoted() { StringBuilder sb = new StringBuilder(); WriterUtil.appendQuoted(sb, "abc"); assertEquals("\"abc\"", sb.toString()); }