@Test
public void testAdd() {

  final XmlNamespaceContext ctx = XmlNamespaceContext.mk("gnu", "http://gnu.org");
  final XmlNamespaceContext added = ctx.add(
          new XmlNamespaceBinding("foo", "http://foo.org"),
          new XmlNamespaceBinding("bar", "http://bar.org"));
  testGetNamespaceURI(added);
  testGetPrefix(added);
  testGetPrefixes(added, asList("bar"));
  assertEquals("gnu", added.getPrefix("http://gnu.org"));
  assertNotEquals(ctx, added);
}