@Test
public void testAdaptName() throws Exception {

    final NamePathResolver resolver = new DefaultNamePathResolver(JsonCnd.BUILTIN_MAPPINGS);
    final QName ntPrefixName = QName.adaptName(JsonCnd.BUILTIN_MAPPINGS,
            QName.Type.NODETYPE, resolver.getQName("nt:aType"));
    final QName ntUriName = QName.adaptName(JsonCnd.BUILTIN_MAPPINGS, QName.Type.NODETYPE,
            resolver.getQName("{" + NamespaceRegistry.NAMESPACE_NT + "}" + "aType"));
    assertEquals("adapt equals", ntPrefixName, ntUriName);
}