I like the XML comparison, there are other tests classes like DslSampleTest which are already using it. The node navigation approach is hard to code, hard to read and confuses the IDE. Groovy "with" blocks ease the pain a bit. We should use the XML comparison as an alternative. Whitespace within elements is significant and should be treated as such.