public static boolean isAsteriskForm(URI uri) {
        return isAsteriskForm(uri.toString());
    }
@Test public void testRecognizesAsteriskForm() {
        // Asterisk form: https://tools.ietf.org/html/rfc7230#section-5.3.4
        assertTrue(HttpUtil.isAsteriskForm(URI.create("*")));
        // Origin form: https://tools.ietf.org/html/rfc7230#section-5.3.1
        assertFalse(HttpUtil.isAsteriskForm(URI.create("/where?q=now")));
        // Absolute form: https://tools.ietf.org/html/rfc7230#section-5.3.2
        assertFalse(HttpUtil.isAsteriskForm(URI.create("http://www.example.org/pub/WWW/TheProject.html")));
        // Authority form: https://tools.ietf.org/html/rfc7230#section-5.3.3
        assertFalse(HttpUtil.isAsteriskForm(URI.create("www.example.com:80")));
    }