@Test
public void testGetQNodeTypesFromJson() {

    List<QNodeTypeDefinition> nts = JsonCnd.getQTypesFromJson(
            key("nt:foo", key("attributes", arr("mixin"))).get(),
            JsonCnd.BUILTIN_MAPPINGS);
    assertEquals("size is ", 1, nts.size());
    assertEquals("name is", "foo", nts.get(0).getName().getLocalName());
    assertEquals("uri is", Name.NS_NT_URI, nts.get(0).getName().getNamespaceURI());
}