@SuppressWarnings("unchecked")
    public <T extends Message> T as(Class<T> t) {
        return (T) this.responseObject;
    }
mock alipay remoting async context
@author boyan (boyan@alibaba-inc.com)

2018-Apr-19 6:05:46 PM
jraft-extension/rpc-grpc-impl/src/test/java/com/alipay/sofa/jraft/test/MockAsyncContext.java