    @Test(expected = BizException.class)
    public void ifSuccess() {

        Result.ok(Arrays.asList("a", "b", "c"))
                .ifNotSuccessThrowException()
                .ifSuccess(data -> {
                    data.forEach(d -> System.out.println(d));
                    return Result.ok(data);
                })
                .ifSuccess(data -> {
                    data.forEach(d -> System.out.println(d));
                    return Result.fail("只是测试");
                })
                .ifNotSuccessThrowException(new BizException("500", "some exception"))
        ;
    }