### Question:
SelectEntityController { @RequestMapping(value = "/update", method = RequestMethod.PUT) public ServiceResult<String> update(@Validated(UpdateSelectEntity.class) @RequestBody TaskSql taskSql, @CurrentUser LoginUser user, Errors errors) throws Exception { taskSql.setUpdate_user_no(user.getUserNo()); ValidateResult validateRes = selectEntityService.validatePermision(user, taskSql, errors) .addAssert(() -> selectEntityDao.updateTask(taskSql) > 0, message.db_message_update_operation_failed).validate(); if (!validateRes.isValid()) { return ServiceResult.fail(validateRes.getSummarize()); } return ServiceResult.success(); }  @RequestMapping(value = "/list", method = RequestMethod.POST) ServiceResult<ListResult<TaskSqlView>> list(@RequestBody Paging<TaskSql> paging); @RequestMapping(value = "/add", method = RequestMethod.POST) ServiceResult<String> add(@Validated(AddSelectEntity.class) @RequestBody TaskSql taskSql, @CurrentUser LoginUser user, Errors errors); @RequestMapping(value = "/update", method = RequestMethod.PUT) ServiceResult<String> update(@Validated(UpdateSelectEntity.class) @RequestBody TaskSql taskSql, @CurrentUser LoginUser user, Errors errors); @RequestMapping(value = "/delete", method = RequestMethod.DELETE) ServiceResult<String> delete(@Validated(DeleteSelectEntity.class) @RequestBody TaskSql taskSql, @CurrentUser LoginUser user, Errors errors);  }### Answer:
@Test public void update() throws Exception { mockMvc.perform(MockMvcRequestBuilders.put("/selectEntity/update") .contentType(MediaType.APPLICATION_JSON_UTF8) .content(requestJson) .accept(MediaType.APPLICATION_JSON_UTF8)) .andExpect(MockMvcResultMatchers.status().isOk()) .andDo(MockMvcResultHandlers.print()); }