public class TransactionReportTest {
@Test
public void testXml() throws Exception {
String source = Files.forIO().readFrom(getClass().getResourceAsStream("transaction_report.xml"), "utf-8");
TransactionReport report = DefaultSaxParser.parse(source);
String xml = new DefaultXmlBuilder().buildXml(report);
String expected = source;
Assert.assertEquals("XML is not well parsed!", expected.replace("\r", ""), xml.replace("\r", ""));
}