@Test
public void testAcceptsXPathElement() throws Exception {

    assertTrue(XPathCriteriaEvaluator.INSTANCE.accepts(null, "*//debug", metadataId, testMetadata, NAMESPACES));
    assertFalse(XPathCriteriaEvaluator.INSTANCE.accepts(null, "*//missing", metadataId, testMetadata, NAMESPACES));
    assertTrue(XPathCriteriaEvaluator.INSTANCE.accepts(null, "*//service[text() = 'main.home']", metadataId, testMetadata, NAMESPACES));
    assertFalse(XPathCriteriaEvaluator.INSTANCE.accepts(null, "*//service[text() = 'xyz']", metadataId, testMetadata, NAMESPACES));
}