public IMessage DeserializeMessage(MessageProperties properties, byte[] body)
        {
            var messageType = typeNameSerializer.Deserialize(properties.Type);
            var messageBody = serializer.Deserialize(body, messageType);

            return(MessageFactory.CreateInstance(messageType, messageBody, properties));
        }
        public void Should_deserialize_a_type_name()
        {
            var type = typeNameSerializer.Deserialize(expectedTypeName);

            type.Should().Be(typeof(string));
        }