@Test
public void testCompareTo() {

    JcrNs foo = JcrNs.create(prefix, uri);
    JcrNs bar = JcrNs.create("bar", "http://bar.com");
    assertEquals("compare ns based on prefix", "foo".compareTo("bar"), foo.compareTo(bar));
    JcrNs fooDiff = JcrNs.create(prefix, "http://bar.com");
    assertNotEquals("compare diff based on prefix and diff uri", 0, foo.compareTo(fooDiff));
}