public void CanSerializeToJson() { var headers = new ServiceMessageFactory().Create(null, new Object()).Headers; var json = WriteJson(headers); Validate(json, @" { ""_t"": """ + headers.GetTimestamp().ToString(DateTimeFormat.RoundTrip) + @""", ""_o"": """ + headers.GetOrigin() + @""", ""_r"": """ + headers.GetRemoteAddress() + @""" }"); }