@Test
void testQuote() {

    StringBuilder buf = new StringBuilder();
    buf.setLength(0);
    QuotedStringTokenizer.quote(buf, "abc \n efg");
    assertEquals("\"abc \\n efg\"", buf.toString());
    buf.setLength(0);
    QuotedStringTokenizer.quote(buf, "abcefg");
    assertEquals("\"abcefg\"", buf.toString());
    buf.setLength(0);
    QuotedStringTokenizer.quote(buf, "abcefg\"");
    assertEquals("\"abcefg\\\"\"", buf.toString());
}