public class NamespaceRegistryImplTest {
@Test
public void testMappings() throws Exception {
ContentRepository repository = new ContentRepositoryImpl();
ContentSession session = repository.login(new GuestCredentials(), null);
NamespaceRegistry r = new NamespaceRegistryImpl(session);
assertEquals("", r.getURI(""));
assertEquals("http://www.jcp.org/jcr/1.0", r.getURI("jcr"));
assertEquals("http://www.jcp.org/jcr/nt/1.0", r.getURI("nt"));