public static <T> Result<T> buildWithParams(T result, String errMsg, Object... args) {
        return new Result(result, errMsg, args);
    }
@Test
    public void testBuildWithParams() {
        // Create a Result with a result value, an error message, and error message parameters
        Result<String> result = Result.buildWithParams("Hello", "Invalid {0} value: {1}", "parameter", 42);

        // Test the getResult, getErrMsg, and getErrMsgParams methods
        assertEquals("Hello", result.getResult());
        assertEquals("Invalid {0} value: {1}", result.getErrMsg());
        assertArrayEquals(new Object[]{"parameter", 42}, result.getErrMsgParams());
    }