public static void checkValidTimeoutSecond(long timeoutSecond, int maxLoadTimeoutSecond, int minLoadTimeOutSecond)
            throws AnalysisException {
        if (timeoutSecond > maxLoadTimeoutSecond ||
                timeoutSecond < minLoadTimeOutSecond) {
            ErrorReport.reportAnalysisException(ErrorCode.ERR_INVALID_VALUE, "timeout", timeoutSecond,
                    String.format("between %d and %d seconds", minLoadTimeOutSecond, maxLoadTimeoutSecond));
        }
    }
@Test
    public void testCheckValidTimeoutSecond() {
        ExceptionChecker.expectThrowsWithMsg(AnalysisException.class,
                "Invalid timeout: '1'. Expected values should be between 2 and 3 seconds",
                () -> GlobalTransactionMgr.checkValidTimeoutSecond(1, 3, 2));
    }