private void assertModelSimilar( String expectedModel, String actualModel )
throws Exception
{
Diff diff = new Diff( expectedModel, actualModel );
DetailedDiff detailedDiff = new DetailedDiff( diff );
if ( !detailedDiff.similar() )
{
// If it isn't similar, dump the difference.
System.out.println( detailedDiff.toString() );
System.out.println( "-- Actual Model --\n" + actualModel + "\n---------------\n\n" );
System.out.println( "-- Expected Model --\n" + expectedModel + "\n---------------\n\n" );