@Test
void testEncodeString() {

    StringBuilder buf = new StringBuilder();
    buf.setLength(0);
    URIUtils.encodeString(buf, "foo%23;,:=b a r", ";,= ");
    assertEquals("foo%2523%3b%2c:%3db%20a%20r", buf.toString());
}