@Test
public void testAcceptsXPathBoolean() throws Exception {

    assertTrue(XPathCriteriaEvaluator.INSTANCE.accepts(null, "geonet/*/debug/text() = 'true'", metadataId, testMetadata, NAMESPACES));
    assertTrue(XPathCriteriaEvaluator.INSTANCE.accepts(null, "/*/debug/text() = 'true'", metadataId, testMetadata, NAMESPACES));
    assertTrue(XPathCriteriaEvaluator.INSTANCE.accepts(null, "*/debug/text() = 'true'", metadataId, testMetadata, NAMESPACES));
    assertTrue(XPathCriteriaEvaluator.INSTANCE.accepts(null, "*//debug/text() = 'true'", metadataId, testMetadata, NAMESPACES));
    assertFalse(XPathCriteriaEvaluator.INSTANCE.accepts(null, "*//debug/text() = 'false'", metadataId, testMetadata, NAMESPACES));
    assertFalse(XPathCriteriaEvaluator.INSTANCE.accepts(null, "*//missing/text() = 'false'", metadataId, testMetadata, NAMESPACES));
}