@Test
    public void testHystrixFallbackFactory() {
        providerConfig = defaultServer(2000);
        providerConfig.export();

        consumerConfig = defaultClient()
            .setTimeout(10000);

        SofaHystrixConfig.registerFallbackFactory(consumerConfig, new HystrixServiceFallbackFactory());

        HystrixService helloService = consumerConfig.refer();

        String result = helloService.sayHello("abc", 24);
        Assert.assertEquals(
            "fallback abc from server! age: 24, error: com.netflix.hystrix.exception.HystrixTimeoutException",
            result);
    }
@author <a href=mailto:scienjus@gmail.com>ScienJus</a>
test/test-integration/src/test/java/com/alipay/sofa/rpc/hystrix/HystrixFilterSyncTest.java