isr = new InputStreamReader(getClass().getClassLoader().getResource(expectedFile).openStream());
final org.w3c.dom.Document actualDoc = XMLUnit.buildDocument(XMLUnit.newTestParser(), new StringReader(actual));
final org.w3c.dom.Document expectedDoc = XMLUnit.buildDocument(XMLUnit.newControlParser(), isr);
Diff myDiff = new Diff(expectedDoc, actualDoc);
assertTrue("Files are similar " + myDiff, myDiff.similar());
} finally {
XMLUnit.setNormalizeWhitespace(nw);
XMLUnit.setNormalize(n);
if(null != isr){