private static final String XPATH_TO_PARSE = "example1/example2";
@Test
@Ignore("Comment this line when it's actually necessary to run this test")
public void test() throws SAXPathException {
XPathReader reader = XPathReaderFactory.createReader();
MethodTracker methodTracker = new MethodTracker();
XPathHandler handler = (XPathHandler) Proxy.newProxyInstance(
XPathHandler.class.getClassLoader(),
new Class<?>[] { XPathHandler.class }, methodTracker);
reader.setXPathHandler(handler);
reader.parse(XPATH_TO_PARSE);
System.out.print(methodTracker.getLog());
}