@Test
public void testAcceptsXPathString() throws Exception {

    assertTrue(XPathCriteriaEvaluator.INSTANCE.accepts(null, "*//debug/text()", metadataId, testMetadata, NAMESPACES));
    assertFalse(XPathCriteriaEvaluator.INSTANCE.accepts(null, "*//language/text()", metadataId, testMetadata, NAMESPACES));
    assertFalse(XPathCriteriaEvaluator.INSTANCE.accepts(null, "*//missing/text()", metadataId, testMetadata, NAMESPACES));
}