@Test
public void encodePath() {

    assertEquals("foo", UriEncoding.encodePath("foo"));
    assertEquals("/top/sub", UriEncoding.encodePath("/top/sub"));
    assertEquals("!%22%23$%25&'()*+,/:;=%3F@%5B%5C%5D%7B%7C%7D%20%C3%A4aZ0",
            UriEncoding.encodePath(MANY_DIFFERENT_CHARS));
}