@Test public void shouldTransformViaDom() throws Exception { assertThat(normalize(Xml.fromDom(Xml.read(xmlFile).getRootElement().toDom()).toXML())) .isEqualTo(normalize(IOUtils.slurp(xmlFile))); }
@Test public void serializedShouldMatch() throws Exception { assertThat(normalize(Xml.read(xmlFile).copy().toXML())) .isEqualTo(normalize(IOUtils.slurp(xmlFile))); }