public static <T> RestResult<T> buildResult(IResultCode resultCode, T data) {
        return RestResult.<T>builder().withCode(resultCode.getCode()).withMsg(resultCode.getCodeMsg()).withData(data).build();
    }
@Test
    void testBuildResult() {
        IResultCode mockCode = new IResultCode() {
            @Override
            public int getCode() {
                return 503;
            }
            
            @Override
            public String getCodeMsg() {
                return "limited";
            }
        };
        RestResult<String> restResult = RestResultUtils.buildResult(mockCode, "content");
        assertRestResult(restResult, 503, "limited", "content", false);
    }