public static void checkParamV2(String tag) throws NacosApiException {
        if (StringUtils.isNotBlank(tag)) {
            if (!isValid(tag.trim())) {
                throw new NacosApiException(HttpStatus.BAD_REQUEST.value(), ErrorCode.PARAMETER_VALIDATE_ERROR,
                        "invalid tag : " + tag);
            }
            if (tag.length() > TAG_MAX_LEN) {
                throw new NacosApiException(HttpStatus.BAD_REQUEST.value(), ErrorCode.PARAMETER_VALIDATE_ERROR,
                        "too long tag, over 16");
            }
        }
    }
@Test
    void testCheckParamV2() {
        //tag invalid
        String tag = "test!";
        try {
            ParamUtils.checkParam(tag);
            fail();
        } catch (IllegalArgumentException e) {
            System.out.println(e.toString());
        }
        
        //tag over length
        tag = "testtesttesttest1";
        try {
            ParamUtils.checkParam(tag);
            fail();
        } catch (IllegalArgumentException e) {
            System.out.println(e.toString());
        }
        
    }