@Test
    public void testURLSonyCoUk2() {
        URI uri = new URI("http://sony.co.uk/", true);
        assertTrue(uri.isValid());
        assertEquals("http", uri.getScheme());
        assertEquals("sony.co.uk", uri.getHost());
        //TODO: Fix when tldlist is implemented:
        //assertEquals("sony.co.uk", uri.getDomain());
        assertEquals("co.uk", uri.getDomain());
        assertEquals("uk", uri.getMainTld());
        assertEquals(-1, uri.getPort());
        assertEquals("/", uri.getPath());
        assertEquals("", uri.getFilename());
        assertNull(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