### Question:
AppGroupController { @RequestMapping(value = "/add", method = RequestMethod.POST) public ServiceResult<String> add(@Validated(AddAppGroup.class) @RequestBody AppGroup appGroup, @CurrentUser LoginUser user, Errors errors) throws Exception { appGroup.setUpdate_user_no(user.getUserNo()); ValidateResult validateRes = appGroupService.validatePermision(user, errors) .addAssert(() -> appGroupDao.getCountByName(appGroup.getName()) == 0, appGroup.getName() + " 已存在！") .addAssert(() -> appGroupService.insertAppGroup(appGroup)) .validate(); if (!validateRes.isValid()) { return ServiceResult.fail(validateRes.getSummarize()); } return ServiceResult.success(); }  @RequestMapping(value = "/list", method = RequestMethod.POST) ServiceResult<ListResult<AppGroupView>> getGroupUsers(@RequestBody Paging<AppGroup> paging); @RequestMapping(value = "/add", method = RequestMethod.POST) ServiceResult<String> add(@Validated(AddAppGroup.class) @RequestBody AppGroup appGroup, @CurrentUser LoginUser user, Errors errors); @RequestMapping(value = "/update", method = RequestMethod.PUT) ServiceResult<String> update(@Validated(UpdateAppGroup.class) @RequestBody AppGroup appGroup, @CurrentUser LoginUser user, Errors errors); @RequestMapping(value = "/delete", method = RequestMethod.DELETE) ServiceResult<String> delete(@Validated(DeleteAppGroup.class) @RequestBody AppGroup appGroup, @CurrentUser LoginUser user, Errors errors); @RequestMapping(value = "/sync") ServiceResult<String> sync(@RequestParam("id") Long id, @CurrentUser LoginUser user); @RequestMapping(value = "/check") ConfigCkeckResult<ConfigCheckItem> check(@RequestParam("id") Long id);  }### Answer:
@Test public void add() throws Exception { mvc.perform(MockMvcRequestBuilders.post("/appGroup/add") .contentType(MediaType.APPLICATION_JSON_UTF8) .accept(MediaType.APPLICATION_JSON_UTF8)) .andExpect(MockMvcResultMatchers.status().isOk()) .andDo(MockMvcResultHandlers.print()); }