To fix it, assertEquals should be done on the xml object and not on the xml string.
Fixed in rev.671144
Fixed in rev.671144