@Test
public void percentDecode() throws Exception {

    assertEquals(Arrays.asList("\u0000"),
            HttpUrl.parse("http://host/%00").pathSegments());
    assertEquals(Arrays.asList("a", "\u2603", "c"),
            HttpUrl.parse("http://host/a/%E2%98%83/c").pathSegments());
    assertEquals(Arrays.asList("a", "\uD83C\uDF69", "c"),
            HttpUrl.parse("http://host/a/%F0%9F%8D%A9/c").pathSegments());
    assertEquals(Arrays.asList("a", "b", "c"),
            HttpUrl.parse("http://host/a/%62/c").pathSegments());
    assertEquals(Arrays.asList("a", "z", "c"),
            HttpUrl.parse("http://host/a/%7A/c").pathSegments());
    assertEquals(Arrays.asList("a", "z", "c"),
            HttpUrl.parse("http://host/a/%7a/c").pathSegments());
}