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

Issue https://github.com/aspnet/Mvc/issues/607.
This is what I was trying to do - In a particular formatter if I set headers after body it throws. (which is effectively a test for my mock). Is there a better way I can do this?