public class NamespaceMappingsTest {
@Test
public void testMappings() throws Exception {
ContentRepository repository = new ContentRepositoryImpl();
ContentSession session = repository.login(null, "default");
NamespaceMappings r = new NamespaceMappings(session);
r.registerNamespace("p", "n");
assertEquals(r.getURI("p"), "n");
assertEquals(r.getPrefix("n"), "p");