@Test
    public void testDepth() {
        assertEquals(0, new URI("test:hit").getDepth());
        assertEquals(0, new URI("test://hit").getDepth());
        assertEquals(0, new URI("test://hit/").getDepth());
        assertEquals(1, new URI("test://hit.test/hello  ").getDepth());
        assertEquals(1, new URI("test://hit.test/hello/").getDepth());
        assertEquals(0, new URI("test:// ").getDepth());
        assertEquals(0, new URI("test:///").getDepth());
        assertEquals(1, new URI("test:////").getDepth());
        assertEquals(2, new URI("test://hit.test/hello/test2/").getDepth());
    }
Tests the URI class

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