@Test
public void testEquals() {

    final JcrNs base = JcrNs.create(prefix, uri);
    assertEquals("should be the same for same", base, base);
    final JcrNs same = JcrNs.create(prefix, uri);
    assertEquals("should be the same for same params", base, same);
    final JcrNs diffUri = JcrNs.create(prefix, "http://foo1.com");
    assertNotEquals("should be diff for diff uri", base, diffUri);
    final JcrNs diffPrefix = JcrNs.create("foo1", uri);
    assertNotEquals("should be diff for diff prefix", base, diffPrefix);
    final JcrNs diffBoth = JcrNs.create("foo1", "http://foo1.com");
    assertNotEquals("should be diff for diff both", base, diffBoth);
}