GroupMemberController { @RequestMapping(value = "/users") public ServiceResult<List<MemberView>> getUsers(@RequestParam(value = "name", defaultValue = "") String name) throws SQLException { return ServiceResult.success(userGroupDao.getUserListByLikeUserName(name)); }  @RequestMapping(value = "/users") ServiceResult<List<MemberView>> getUsers(@RequestParam(value = "name", defaultValue = "") String name); @RequestMapping(value = "/list", method = RequestMethod.POST) ServiceResult<ListResult<MemberView>> getGroupUsers(@RequestBody Paging<UserGroup> paging); @RequestMapping(value = "/add", method = RequestMethod.POST) ServiceResult<String> add(@Validated(AddMember.class) @RequestBody UserGroup userGroup, @CurrentUser LoginUser user, Errors errors); @RequestMapping(value = "/delete", method = RequestMethod.DELETE) ServiceResult<String> delete(@Validated(DeleteMember.class) @RequestBody UserGroup userGroup, @CurrentUser LoginUser user, Errors errors); @RequestMapping(value = "/update", method = RequestMethod.PUT) ServiceResult<String> update(@Validated(UpdateMember.class) @RequestBody UserGroup userGroup, @CurrentUser LoginUser user, Errors errors);  }
@Test public void getUsers() throws Exception { mockMvc.perform(MockMvcRequestBuilders.get("/member/users") .contentType(MediaType.APPLICATION_JSON_UTF8) .param("name", "name") .accept(MediaType.APPLICATION_JSON_UTF8)) .andExpect(MockMvcResultMatchers.status().isOk()) .andDo(MockMvcResultHandlers.print()); }