public void MessageToString()
        {
          var message = new Message();

          message.Address = "Test";
          message.Init("foo", "bar");
          message.TimeStamp = Time.MinUTCTime();
          		
           Assert.AreEqual("Message Test (01.01.0001 01:00:00 [UTC])\n foo \t: bar \r\n", message.ToString());
        }
        public void MessageToJson()
        {

            var message = new Message();
            message.Init("foo", "bar");
            message.Address = "Test";
            message.TimeStamp = Time.MinUTCTime();

            var settings = new JsonSerializerSettings { Formatting = Formatting.None, TypeNameHandling = TypeNameHandling.None };


            string json = JsonConvert.SerializeObject(message, settings);
            var newMessage = (Message)JsonConvert.DeserializeObject(json, typeof(Message));


            Assert.AreEqual("{\"Address\":\"Test\",\"TimeStamp\":{\"UTC\":\"0001-01-01 00:00:00.0000\",\"ZoneId\":\"UTC\"},\"Data\":{\"foo\":{\"string\":[\"bar\"]}}}", json);

            Assert.AreEqual(message.ToString(), newMessage.ToString());


        }