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

            var msg  = new SuccessMessage(new EndpointId("a"), new MessageId());
            var data = translator.FromMessage(msg);

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

            var msg = new EndpointInteractionInformationResponseMessage(
                new EndpointId("a"),
                new MessageId(),
                InteractionConnectionState.Denied);
            var data = translator.FromMessage(msg);

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