@Test
    public void testURLUnderduskenUholdbar() {
        URI uri =
                new URI("http://www.underdusken.no/?page=dusker/html/0008/Uholdbar.html", true);
        assertTrue(uri.isValid());
        assertEquals("http", uri.getScheme());
        assertEquals("www.underdusken.no", uri.getHost());
        assertEquals("underdusken.no", uri.getDomain());
        assertEquals("no", uri.getMainTld());
        assertEquals(-1, uri.getPort());
        assertEquals("/", uri.getPath());
        assertEquals("", uri.getFilename());
        assertNull(uri.getExtension());
        assertNull(uri.getParams());
        assertEquals("page=dusker/html/0008/Uholdbar.html", uri.getQuery());
        assertNull(uri.getFragment());
    }
Tests the URI class

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