@Before
    public void setUp() {

        ApplicationConfig clientApplication = new ApplicationConfig();
        clientApplication.setAppName("client");
        ConsumerConfig consumerConfig = new ConsumerConfig<DemoService>()
                .setInterfaceId(DemoService.class.getName())
                .setDirectUrl("dubbo://127.0.0.1:20880")
                .setTimeout(30000)
                .setRegister(false)
                .setProtocol("dubbo")
                .setBootstrap("dubbo")
                .setApplication(clientApplication)
                .setInvokeType(RpcConstants.INVOKER_TYPE_ONEWAY);
        consumerConfig.setParameter("version", "1.0.1");
        dubboConsumerBootstrap = new DubboConsumerBootstrap<>(consumerConfig);

    }
@author <a href=mailto:taobaorun@gmail.com>taobaorun</a>
bootstrap/bootstrap-dubbo/src/test/java/com/alipay/sofa/rpc/bootstrap/dubbo/DubboConsumerBootstrapTest.java