@Test(expected = SofaRpcException.class)
    public void testRejectedExecutionPolicyIllegal() {

        serverConfig = new ServerConfig()
            .setPort(22226)
            .setDaemon(false);

        // RpcServer For C
        CProvider = new ProviderConfig<HelloService>()
            .setInterfaceId(HelloService.class.getName())
            .setRef(new HelloServiceImpl(0))
            .setServer(serverConfig);
        CProvider.export();

        // RpcClient For B invoke C
        Filter filter = new TestAsyncFilter();
        BConsumer = new ConsumerConfig<HelloService>()
            .setInterfaceId(HelloService.class.getName())
            .setInvokeType(RpcConstants.INVOKER_TYPE_CALLBACK)
            .setTimeout(3000)
            .setFilterRef(Arrays.asList(filter))
            .setRejectedExecutionPolicy("WRONG_POLICY")
            .setDirectUrl("bolt://127.0.0.1:22226");
        HelloService helloService = BConsumer.refer();

        // Calling when setting the wrong rejected execution policy will throw an exception
        helloService.sayHello("test", 33);
    }
@author <a href="mailto:zhanggeng.zg@antfin.com">GengZhang</a>
test/test-integration/src/test/java/com/alipay/sofa/rpc/test/invoke/AsyncCallbackTest.java