@Test
void testParse() {

    HttpURI uri = new HttpURI();
    uri.parse("*");
    assertNull(uri.getHost());
    assertEquals("*", uri.getPath());
    uri.parse("/foo/bar");
    assertNull(uri.getHost());
    assertEquals("/foo/bar", uri.getPath());
    uri.parse("//foo/bar");
    assertEquals("foo", uri.getHost());
    assertEquals("/bar", uri.getPath());
    uri.parse("http://foo/bar");
    assertEquals("foo", uri.getHost());
    assertEquals("/bar", uri.getPath());
}