@Test
public void testQNameOrResidual() throws Exception {

    final Fun.ThrowingFunction<String, Name> func = JsonCnd.qNameOrResidual(resolver);
    assertEquals("* equals *", JsonCnd.QNAME_RESIDUAL, func.tryApply(JsonCnd.TOKEN_RESIDUAL));
    final Name ntFolder = NameFactoryImpl.getInstance().create(Name.NS_NT_URI, "folder");
    assertEquals("nt:folder equals nt:folder", ntFolder, func.tryApply("nt:folder"));
}