{
final String initial = loadResource( initialResourceName );
final String expected = loadResource( expectedResourceName );
final ByteArrayResourceStore byteArrayResourceStore = new ByteArrayResourceStore( initial );
final XmlResourceStore xmlResourceStore = new XmlResourceStore( byteArrayResourceStore );
op.run( xmlResourceStore.getDomDocument() );
xmlResourceStore.save();
final String actual = new String( byteArrayResourceStore.getContents(), UTF8 );
assertEqualsIgnoreNewLineDiffs( expected, actual );
}