@Test
    public void testSorting() {
        URI first = new URI("http://aisfirst.kanoo.com");
        URI second = new URI("www.thentheresw.com");

        assertTrue(first.compareTo(second) < 0);
        assertTrue(second.compareTo(second) == 0);
        assertTrue(second.compareTo(first) > 1);
    }
Tests the URI class

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