@Operation(summary = "create", description = "CREATE_TASK_GROUP_NOTE")
    @Parameters({
            @Parameter(name = "name", description = "NAME", schema = @Schema(implementation = String.class)),
            @Parameter(name = "projectCode", description = "PROJECT_CODE", schema = @Schema(implementation = long.class)),
            @Parameter(name = "description", description = "TASK_GROUP_DESCRIPTION", schema = @Schema(implementation = String.class)),
            @Parameter(name = "groupSize", description = "GROUP_SIZE", schema = @Schema(implementation = int.class)),

    })
    @PostMapping(value = "/create")
    @ResponseStatus(HttpStatus.CREATED)
    @ApiException(CREATE_TASK_GROUP_ERROR)
    public Result createTaskGroup(@Parameter(hidden = true) @RequestAttribute(value = Constants.SESSION_USER) User loginUser,
                                  @RequestParam("name") String name,
                                  @RequestParam(value = "projectCode", required = false, defaultValue = "0") Long projectCode,
                                  @RequestParam("description") String description,
                                  @RequestParam("groupSize") Integer groupSize) {
        Map<String, Object> result =
                taskGroupService.createTaskGroup(loginUser, projectCode, name, description, groupSize);
        return returnDataList(result);
    }
@Test
    public void testCreateTaskGroup() throws Exception {

        // success
        MultiValueMap<String, String> paramsMap = new LinkedMultiValueMap<>();
        paramsMap.add("name", "TGQ1");
        paramsMap.add("description", "this is a task group queue!");
        paramsMap.add("groupSize", "10");

        MvcResult mvcResult = mockMvc.perform(post("/task-group/create")
                .header(SESSION_ID, sessionId)
                .params(paramsMap))
                .andExpect(status().isCreated())
                .andExpect(content().contentType(MediaType.APPLICATION_JSON))
                .andReturn();
        Result result = JSONUtils.parseObject(mvcResult.getResponse().getContentAsString(), Result.class);
        Assertions.assertTrue(result != null && result.isSuccess());
        logger.info("create queue return result:{}", mvcResult.getResponse().getContentAsString());
        // failed
        // name exists
        paramsMap.clear();
        paramsMap.add("name", "TGQ1");
        paramsMap.add("description", "this is a task group queue!");
        paramsMap.add("groupSize", "10");

        MvcResult mvcResult1 = mockMvc.perform(post("/task-group/create")
                .header(SESSION_ID, sessionId)
                .params(paramsMap))
                .andExpect(status().isCreated())
                .andExpect(content().contentType(MediaType.APPLICATION_JSON))
                .andReturn();
        Result result1 = JSONUtils.parseObject(mvcResult1.getResponse().getContentAsString(), Result.class);
        Assertions.assertTrue(result1 != null && result1.isFailed());
        logger.info("create queue return result:{}", mvcResult1.getResponse().getContentAsString());
    }