@Test
    public void testURLUninett() {
        URI uri = new URI("http://180.uninett.no/servlet/online.Bransje", true);
        assertTrue(uri.isValid());
        assertEquals("http", uri.getScheme());
        assertEquals("180.uninett.no", uri.getHost());
        assertEquals("uninett.no", uri.getDomain());
        assertEquals("no", uri.getMainTld());
        assertEquals(-1, uri.getPort());
        assertEquals("/servlet/online.Bransje", uri.getPath());
        assertEquals("online.Bransje", uri.getFilename());
        assertEquals("Bransje", uri.getExtension());
        assertNull(uri.getParams());
        assertNull(uri.getQuery());
        assertNull(uri.getFragment());
    }
Tests the URI class

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