@Test
    public void testHost() {
        assertEquals("a.b.c", new URI("http://A.B.C:567").getHost());
        assertEquals("www.kanoo.com",
                new URI("www.kanoo.com/foo", false, true).getHost());
        assertEquals("a.b.c", new URI("http://a.b.C/foo").getHost());
        assertEquals("a.b.c", new URI("http://a.b.C").getHost());
        assertEquals("a", new URI("http://A").getHost());
        assertEquals("a", new URI("http://A:80").getHost());
    }
Tests the URI class

@author bratseth
vespajlib/src/test/java/com/yahoo/net/URITestCase.java