@Override
    public SofaResponse invoke(SofaRequest request) throws SofaRpcException {
        this.request = request;
        if ("throwRPC".equals(request.getMethodName())) {
            throw new SofaRpcException(RpcErrorType.SERVER_UNDECLARED_ERROR, "xxxx");
        }
        SofaResponse response = new SofaResponse();
        try {
            Method method = TestInterface.class.getMethod(request.getMethodName(),
                ClassTypeUtils.getClasses(request.getMethodArgSigs()));
            Object ret = method.invoke(testInterface, request.getMethodArgs());
            response = new SofaResponse();
            response.setAppResponse(ret);
        } catch (Exception e) {
            response.setErrorMsg(e.getMessage());
        }
        return response;
    }
@author <a href="mailto:zhanggeng.zg@antfin.com">GengZhang</a>
core-impl/proxy/src/test/java/com/alipay/sofa/rpc/proxy/TestInvoker.java