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

Issue https://github.com/aspnet/Mvc/issues/607.
what is the purpose of this test case? why are we testing the mock ? the actual code never throws even if you do this to httpResponse.