public class ProblemReportTest {
@Test
public void testXml() throws Exception {
String source = Files.forIO().readFrom(getClass().getResourceAsStream("problem-report.xml"), "utf-8");
ProblemReport root = DefaultSaxParser.parse(source);
String xml = new DefaultXmlBuilder().buildXml(root);
String expected = source;
Assert.assertEquals(expected.replace("\r", ""), xml.replace("\r", ""));
}