@Test
    public void testRemote() {

        HttpMockServer.initSever(1235);
        HttpMockServer.addMockPath("/", JSON.toJSONString("mockJson"));
        HttpMockServer.start();
        final ConsumerConfig<HelloService> consumerConfig = new ConsumerConfig<HelloService>()
            .setInterfaceId(HelloService.class.getName())
            .setProtocol(RpcConstants.PROTOCOL_TYPE_BOLT)
            .setBootstrap("bolt")
            .setApplication(new ApplicationConfig().setAppName("clientApp"))
            .setReconnectPeriod(1000)
            .setMockMode(MockMode.REMOTE)
            .setParameter("mockUrl", "http://127.0.0.1:1235/");

        HelloService helloService = consumerConfig.refer();
        Assert.assertEquals("mockJson", helloService.sayHello("xx", 22));

        HttpMockServer.stop();
    }
@author <a href="mailto:zhiyuan.lzy@antfin.com">zhiyuan.lzy</a>
test/test-integration/src/test/java/com/alipay/sofa/rpc/client/bolt/BoltMockTest.java