@Override
        public <T> Attribute<T> attr(AttributeKey<T> key) {
            return new Attribute<T>() {
                @Override
                public AttributeKey<T> key() {
                    return null;
                }

                @Override
                public T get() {
                    return null;
                }

                @Override
                public void set(T value) {

                }

                @Override
                public T getAndSet(T value) {
                    return null;
                }

                @Override
                public T setIfAbsent(T value) {
                    return null;
                }

                @Override
                public T getAndRemove() {
                    return null;
                }

                @Override
                public boolean compareAndSet(T oldValue, T newValue) {
                    return false;
                }

                @Override
                public void remove() {

                }
            };
        }
@author chengyi (mark.lx@antfin.com) 2021-05-24 20:07
src/test/java/com/alipay/remoting/codec/ProtocolCodeBasedDecoderTest.java