public void ToMessageWithNonMatchingDataType()
        {
            var translator = new EndpointInteractionInformationResponseConverter();

            var data = new SuccessData
            {
                Id           = new MessageId(),
                InResponseTo = new MessageId(),
                Sender       = new EndpointId("a"),
            };
            var msg = translator.ToMessage(data);

            Assert.IsInstanceOf(typeof(UnknownMessageTypeMessage), msg);
            Assert.AreSame(data.Id, msg.Id);
            Assert.AreSame(data.Sender, msg.Sender);
            Assert.AreSame(data.InResponseTo, msg.InResponseTo);
        }
        public void ToMessage()
        {
            var translator = new EndpointInteractionInformationResponseConverter();

            var data = new EndpointInteractionInformationResponseData
            {
                Id           = new MessageId(),
                InResponseTo = new MessageId(),
                Sender       = new EndpointId("a"),
                State        = InteractionConnectionState.Desired.ToString(),
            };
            var msg = translator.ToMessage(data);

            Assert.IsInstanceOf(typeof(EndpointInteractionInformationResponseMessage), msg);
            Assert.AreSame(data.Id, msg.Id);
            Assert.AreSame(data.Sender, msg.Sender);
            Assert.AreSame(data.InResponseTo, msg.InResponseTo);
            Assert.AreEqual(data.State, ((EndpointInteractionInformationResponseMessage)msg).State.ToString());
        }