### Question:
ServerController { @RequestMapping(value = "/add", method = RequestMethod.POST) public ServiceResult<String> add(@Validated(AddServer.class) @RequestBody Server server, @CurrentUser LoginUser user, Errors errors) throws Exception { server.setUpdate_user_no(user.getUserNo()); ValidateResult validateRes = serverService.validatePermision(user, errors) .addAssert(() -> serverDao.isNotExistByIpAndPort(server), "此IP和端口已存在！") .addAssert(() -> serverService.insertServer(server)).validate(); if (!validateRes.isValid()) { return ServiceResult.fail(validateRes.getSummarize()); } return serverService.addDataCenter(user, server); }  @RequestMapping(value = "/list", method = RequestMethod.POST) ServiceResult<ListResult<ServerView>> loadPageList(@RequestBody Paging<Server> paging); @RequestMapping(value = "/add", method = RequestMethod.POST) ServiceResult<String> add(@Validated(AddServer.class) @RequestBody Server server, @CurrentUser LoginUser user, Errors errors); @RequestMapping(value = "/update", method = RequestMethod.PUT) ServiceResult<String> update(@Validated(UpdateServer.class) @RequestBody Server server, @CurrentUser LoginUser user, Errors errors); @RequestMapping(value = "/delete", method = RequestMethod.DELETE) ServiceResult<String> delete(@Validated(DeleteServer.class) @RequestBody Server server, @CurrentUser LoginUser user, Errors errors); @RequestMapping(value = "/sync") ServiceResult<String> sync(@RequestParam("id") Long id, @CurrentUser LoginUser user); @RequestMapping(value = "/check") ConfigCkeckResult<ConfigCheckItem> check(@CurrentUser LoginUser user, @RequestParam("id") Long id);  }### Answer:
@Test public void add() throws Exception { mockMvc.perform(MockMvcRequestBuilders.post("/server/add") .contentType(MediaType.APPLICATION_JSON_UTF8) .content(requestJson) .accept(MediaType.APPLICATION_JSON_UTF8)) .andExpect(MockMvcResultMatchers.status().isOk()) .andDo(MockMvcResultHandlers.print()); }