@Test public void testWriteComplete() throws Exception { String old_xml = new StringPuller().pull(COMPLETE_XML, getClass()); SwitchYardModel switchyard = _puller.pull(new StringReader(old_xml)); String new_xml = switchyard.toString(); XMLUnit.setIgnoreWhitespace(true); Diff diff = XMLUnit.compareXML(old_xml, new_xml); Assert.assertTrue(diff.toString(), diff.identical()); }