_expectedDocumentCache.put(expFileName, expectedDoc);
}
String actual = "<doc>" + resString + "</doc>";
Document actualDoc = buildDocument(new ByteArrayInputStream(actual.getBytes("UTF-8")));
Diff diff = new Diff(expectedDoc, actualDoc);
if(diff.similar()) {
reportTestResult(testName, "pass", null);
break;
} else {
if(oi == lastoi) {
reportTestResult(testName, "not tested", "Inspectection is required");