public void testXPathExpressionComparator() {
String control = "<HTML><head><title>Test</title></head><body>test</body><HTML>";
String test = "<HTML><head><title>Test</title></head><body>test</body><HTML>";
assertTrue(control.equals(test));
XPathExpressionComparator oracle = new XPathExpressionComparator();
compareTwoDomsWithComparatorEqual(control, test, oracle);
compareTwoDomsWithComparatorEqual(control, test, new XPathExpressionComparator());
test =
"<HTML><head><title>Test</title></head><body>test<div id='ignoreme'>"
+ "ignoreme</div></body><HTML>";
compareTwoDomsWithComparatorNotEqual(control, test, oracle);
compareTwoDomsWithComparatorNotEqual(control, test, new XPathExpressionComparator());
oracle = new XPathExpressionComparator("//*[@id='ignoreme']");
compareTwoDomsWithComparatorEqual(control, test, oracle);
compareTwoDomsWithComparatorEqual(test, control, oracle);
control =
"<HTML><head><title>Test</title></head><body>test<div id='ignoreme'>"