@Test
    public void testURLArthur() {
        URI uri = new URI("http://arthur/qm/images/qm1.gif", true);
        assertTrue(uri.isValid());
        assertEquals("http", uri.getScheme());
        assertEquals("arthur", uri.getHost());
        assertEquals("arthur", uri.getDomain());
        assertNull(uri.getMainTld());
        assertEquals(-1, uri.getPort());
        assertEquals("/qm/images/qm1.gif", uri.getPath());
        assertEquals("qm1.gif", uri.getFilename());
        assertEquals("gif", 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