CrossReport reportNew = DefaultSaxParser.parse(newXml);
String expected = Files.forIO().readFrom(getClass().getResourceAsStream("CrossReportMergeResult.xml"), "utf-8");
CrossReportMerger merger = new CrossReportMerger(new CrossReport(reportOld.getDomain()));
reportOld.accept(merger);
reportNew.accept(merger);
Assert.assertEquals("Check the merge result!", expected.replaceAll("\r", ""), merger.getCrossReport()
.toString().replaceAll("\r", ""));
Assert.assertEquals("Source report is changed!", newXml.replaceAll("\r", ""),
reportNew.toString().replaceAll("\r", ""));