@Test
public void testAcceptsXPathError() throws Exception {

    final XPathCriteriaEvaluator xPathCriteriaEvaluator = new XPathCriteriaEvaluator() {
        @Override
        protected void warn(String value, Throwable e) {
            // do nothing so that the console stays clean
        }
    };
    assertFalse(xPathCriteriaEvaluator.accepts(null, "*//debug[d = 'da", metadataId, testMetadata, NAMESPACES));
}