@Test
    public void testURLDotDot() {
        URI uri = new URI("..", true);
        assertTrue(uri.isValid());
        assertNull(uri.getScheme());
        assertNull(uri.getHost());
        assertNull(uri.getDomain());
        assertNull(uri.getMainTld());
        assertEquals(-1, uri.getPort());
        assertNull(uri.getPath());  //differs from FastS_URL, ".."
        assertNull(uri.getFilename());  //differs from FastS_URL, ".."
        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