public static void checkParam(String dataId, String group, String datumId, String content) throws NacosException {
        if (StringUtils.isBlank(dataId) || !isValid(dataId.trim())) {
            throw new NacosApiException(HttpStatus.BAD_REQUEST.value(), ErrorCode.PARAMETER_VALIDATE_ERROR,
                    "invalid dataId : " + dataId);
        } else if (StringUtils.isBlank(group) || !isValid(group)) {
            throw new NacosApiException(HttpStatus.BAD_REQUEST.value(), ErrorCode.PARAMETER_VALIDATE_ERROR,
                    "invalid group : " + group);
        } else if (StringUtils.isBlank(datumId) || !isValid(datumId)) {
            throw new NacosApiException(HttpStatus.BAD_REQUEST.value(), ErrorCode.PARAMETER_VALIDATE_ERROR,
                    "invalid datumId : " + datumId);
        } else if (StringUtils.isBlank(content)) {
            throw new NacosApiException(HttpStatus.BAD_REQUEST.value(), ErrorCode.PARAMETER_VALIDATE_ERROR,
                    "content is blank : " + content);
        } else if (content.length() > PropertyUtil.getMaxContent()) {
            throw new NacosApiException(HttpStatus.BAD_REQUEST.value(), ErrorCode.PARAMETER_VALIDATE_ERROR,
                    "invalid content, over " + PropertyUtil.getMaxContent());
        }
    }
@Test
    void testCheckParamV1() {
        //dataId is empty
        String dataId = "";
        String group = "test";
        String datumId = "test";
        String content = "test";
        try {
            ParamUtils.checkParam(dataId, group, datumId, content);
            fail();
        } catch (NacosException e) {
            System.out.println(e.toString());
        }
        //group is empty
        dataId = "test";
        group = "";
        datumId = "test";
        content = "test";
        try {
            ParamUtils.checkParam(dataId, group, datumId, content);
            fail();
        } catch (NacosException e) {
            System.out.println(e.toString());
        }
        //datumId is empty
        dataId = "test";
        group = "test";
        datumId = "";
        content = "test";
        try {
            ParamUtils.checkParam(dataId, group, datumId, content);
            fail();
        } catch (NacosException e) {
            System.out.println(e.toString());
        }
        //content is empty
        dataId = "test";
        group = "test";
        datumId = "test";
        content = "";
        try {
            ParamUtils.checkParam(dataId, group, datumId, content);
            fail();
        } catch (NacosException e) {
            System.out.println(e.toString());
        }
        //dataId invalid
        dataId = "test!";
        group = "test";
        datumId = "test";
        content = "test";
        try {
            ParamUtils.checkParam(dataId, group, datumId, content);
            fail();
        } catch (NacosException e) {
            System.out.println(e.toString());
        }
        //group invalid
        dataId = "test";
        group = "test!";
        datumId = "test";
        content = "test";
        try {
            ParamUtils.checkParam(dataId, group, datumId, content);
            fail();
        } catch (NacosException e) {
            System.out.println(e.toString());
        }
        //datumId invalid
        dataId = "test";
        group = "test";
        datumId = "test!";
        content = "test";
        try {
            ParamUtils.checkParam(dataId, group, datumId, content);
            fail();
        } catch (NacosException e) {
            System.out.println(e.toString());
        }
        //content over length
        dataId = "test";
        group = "test";
        datumId = "test";
        int maxContent = 10 * 1024 * 1024;
        StringBuilder contentBuilder = new StringBuilder();
        for (int i = 0; i < maxContent + 1; i++) {
            contentBuilder.append("t");
        }
        content = contentBuilder.toString();
        
        try {
            ParamUtils.checkParam(dataId, group, datumId, content);
            fail();
        } catch (NacosException e) {
            System.out.println(e.toString());
        }
    }