@Test
public void testJcrNameOrResidual() throws Exception {

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