public static <T> RestResult<T> failedWithMsg(int code, String errMsg) {
        return RestResult.<T>builder().withCode(code).withMsg(errMsg).build();
    }
@Test
    void testFailedWithMsg() {
        RestResult<String> restResult = RestResultUtils.failed("test");
        assertRestResult(restResult, 500, "test", null, false);
    }