final String result = JaxbOpenejbJar2.marshal(GeronimoEjbJarType.class, root);
final String expected = readContent(getInputStream("geronimo-openejb-converted.xml"));
final Diff myDiff = new DetailedDiff(new Diff(expected, result));
final AtomicInteger differenceNumber = new AtomicInteger(0); // just to get an int wrapper for the test
myDiff.overrideDifferenceListener(new DifferenceListener() {
@Override
public int differenceFound(final Difference difference) {
if (!difference.isRecoverable()) {
differenceNumber.incrementAndGet();
System.err.println(">>> " + difference.toString());