### Question:
PublicStrategyController { @RequestMapping(value = "/add", method = RequestMethod.POST) public ServiceResult<String> add(@Validated(AddPublicStrategy.class) @RequestBody PublicStrategy publicStrategy, @CurrentUser LoginUser user, Errors errors) throws Exception { publicStrategy.setUpdate_user_no(user.getUserNo()); ValidateResult validateRes = publicStrategyService.validatePermision(user, errors) .addAssert(() -> publicStrategyDao.getCountByName(publicStrategy.getName()) == 0, publicStrategy.getName() + " 已存在！") .addAssert(() -> publicStrategyDao.insertPublicStrategy(publicStrategy) > 0, message.db_message_add_operation_failed).validate(); if (!validateRes.isValid()) { return ServiceResult.fail(validateRes.getSummarize()); } return ServiceResult.success(); }  @RequestMapping(value = "/list", method = RequestMethod.POST) ServiceResult<ListResult<PublicStrategyView>> list(@RequestBody Paging<PublicStrategy> paging); @RequestMapping(value = "/list") ServiceResult<List<PublicStrategy>> list(); @RequestMapping(value = "/add", method = RequestMethod.POST) ServiceResult<String> add(@Validated(AddPublicStrategy.class) @RequestBody PublicStrategy publicStrategy, @CurrentUser LoginUser user, Errors errors); @RequestMapping(value = "/update", method = RequestMethod.PUT) ServiceResult<String> update(@Validated(UpdatePublicStrategy.class) @RequestBody PublicStrategy publicStrategy, @CurrentUser LoginUser user, Errors errors); @RequestMapping(value = "/delete", method = RequestMethod.DELETE) ServiceResult<String> delete(@Validated(DeletePublicStrategy.class) @RequestBody PublicStrategy publicStrategy, @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 { mockMvc.perform(MockMvcRequestBuilders.post("/publicStrategy/add") .contentType(MediaType.APPLICATION_JSON_UTF8) .content(requestJson) .accept(MediaType.APPLICATION_JSON_UTF8)) .andExpect(MockMvcResultMatchers.status().isOk()) .andDo(MockMvcResultHandlers.print()); }