{
String expectedXml = prettyXmlPrint( expected );
String testXml = prettyXmlPrint( test );
Diff diff = new Diff( expectedXml, testXml );
StringBuffer diffMessage = new StringBuffer();
assertTrue( " xml diff not identical " + diff.appendMessage( diffMessage ).toString(), diff.identical() );
}
public void assertXmlSimilar( String expected, String test )
throws Exception