public void Write(Message message, object obj)
        {
            if (message == null)
                throw new ArgumentNullException("message");
            if (obj == null)
            {
                throw new ArgumentNullException("obj");
            }
            var msgBody = new XmlMessageBuilder();

            message.BodyStream = msgBody.Serialize(obj, message.SourceAddress, message.DestinationAddress);
        }
 public void SetUpForEachTest()
 {
     _body = new XmlMessageBuilder();
 }