Introducing UnitTests for XmlFormatters to confirm that headers are always written before writing the body.