@Test
public void testEquals() throws Exception {

  final EName a = new EName("http://localhost/a", "a");
  final EName b = new EName("http://localhost/a", "a");
  final EName c = new EName("http://localhost/b", "a");
  final EName d = new EName("http://localhost/a", "b");
  assertEquals(a, a);
  assertEquals(a, b);
  assertEquals(b, a);
  assertNotEquals(a, c);
  assertNotEquals(c, a);
  assertNotEquals(c, d);
  assertNotEquals(d, c);
}