assertEquals("", path.getName().getName());
}
public void testCreateName() throws Exception
{
JCRName name = factory.parseJCRName("jcr:test");
assertEquals("jcr:test", name.getAsString());
assertEquals("test", name.getName());
assertEquals(namespaceRegistry.getNamespaceURIByPrefix("jcr"), name.getNamespace());
assertEquals("jcr", name.getPrefix());
assertEquals("[" + namespaceRegistry.getNamespaceURIByPrefix("jcr") + "]test", name.getInternalName()
.getAsString());
JCRName name1 = factory.createJCRName(name.getInternalName());
assertTrue(name.equals(name1));
}