@Test
void testParseRequestTarget() {

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