String expected = Files.forIO().readFrom(getClass().getResourceAsStream("ServiceReportResult.xml"),
"utf-8");
ServiceReportMerger merger = new ServiceReportMerger(new ServiceReport(reportOld.getDomain()));
reportOld.accept(merger);
reportNew.accept(merger);
Assert.assertEquals("Check the merge result!", expected.replace("\r", ""), merger.getServiceReport()
.toString().replace("\r", ""));
Assert.assertEquals("Source report is changed!", newXml.replace("\r", ""), reportNew.toString().replace("\r", ""));
}