assertNodesEqual(doc1, doc2);
NodeComparator comparator = new NodeComparator();
assertTrue("Documents are equal",
comparator.compare(doc1, doc2) == 0);
} catch (Exception e) {
log("Failed during comparison of: " + doc1 + " and: " + doc2);
throw e;
}
}