public void constructor_should_initialize_instance()
        {
            var stream          = new MemoryStream();
            var encoderSettings = new MessageEncoderSettings();
            var wrappedEncoder  = new CommandMessageBinaryEncoder(stream, encoderSettings);

            var result = new CommandRequestMessageBinaryEncoder(wrappedEncoder);

            result._wrappedEncoder().Should().BeSameAs(wrappedEncoder);
        }
        public static CommandMessageBinaryEncoder _wrappedEncoder(this CommandRequestMessageBinaryEncoder obj)
        {
            var fieldInfo = typeof(CommandRequestMessageBinaryEncoder).GetField("_wrappedEncoder", BindingFlags.NonPublic | BindingFlags.Instance);

            return((CommandMessageBinaryEncoder)fieldInfo.GetValue(obj));
        }