// Test read namespace list
String nsName = reader.getNamespaceNames().get(0);
assertEquals(nsName, "NS1");
// Read a namespace
RESTNamespace ns = reader.getNamespace(nsName);
assertEquals(ns.getPrefix(), "NS1");
assertEquals(ns.getURI(), URI.create("http://a.example.com"));
// Update namespaces (change URI)
assertTrue(publisher.updateNamespace("NS1", URI.create("http://b.example.com")));
assertFalse(publisher.updateNamespace("NS2", URI.create("http://a.example.com"))); // Nonexistent