@BeforeClass
    public static void before() {
        ServerConfig serverConfig = new ServerConfig()
            .setStopTimeout(60000)
            .setPort(8803)
            .setProtocol(RpcConstants.PROTOCOL_TYPE_REST);

        ProviderConfig<RestService> providerConfig = new ProviderConfig<RestService>()
            .setInterfaceId(RestService.class.getName())
            .setRef(new RestServiceImpl())
            .setServer(serverConfig)
            .setBootstrap("rest")
            .setRegister(false);
        providerConfig.export();

        ConsumerConfig<RestService> consumerConfig = new ConsumerConfig<RestService>()
            .setInterfaceId(RestService.class.getName())
            .setDirectUrl("rest://127.0.0.1:8803")
            .setProtocol("rest")
            .setBootstrap("rest")
            .setTimeout(30000)
            .setRegister(false);
        restService = consumerConfig.refer();
    }
@author <a href="mailto:lw111072@antfin.com">liangen</a>
test/test-integration/src/test/java/com/alipay/sofa/rpc/server/rest/BaseRestTest.java