### Question:
UserController { @ApiOperation( value = "修改用户昵称（当前登录用户操作）", notes = "修改用户昵称" ) @ApiImplicitParams({ @ApiImplicitParam(name = "Authorization", value = "用户登录凭证", paramType = "header", dataType = "string", defaultValue = "Bearer ", required = true), @ApiImplicitParam(name = "nickName", value = "用户昵称", required = true), }) @PutMapping("/update/{nickName}") @OperationRecord(type = OperationRecordLog.OperationType.UPDATE, resource = OperationRecordLog.OperationResource.USER, description = OperationRecordLog.OperationDescription.UPDATE_USER) public ServiceResult changeNickName(@PathVariable String nickName) { String userId = ThreadLocalUtils.USER_THREAD_LOCAL.get().getUserId(); return userService.updateUserNickNameByUserId(userId, nickName); }  @ApiOperation(value = "登录") @PostMapping("/login") ServiceResult login(@RequestBody LoginReq loginReq); @ApiOperation(value = "注册") @PostMapping("/register") ServiceResult register(@RequestBody RegisterReq registerReq); @ApiOperation(value = "修改密码") @PostMapping("/changePassword") ServiceResult register(@RequestBody ChangePasswordReq changePasswordReq); @ApiOperation( value = "暂不支持" ) @ApiImplicitParams({ @ApiImplicitParam(name = "Authorization", value = "用户登录凭证", paramType = "header", dataType = "string", defaultValue = "Bearer ", required = true), }) @GetMapping("/set") ServiceResult set(@RequestParam(required = false, defaultValue = "") String password,
                             @RequestParam(required = false, defaultValue = "") String phone); @ApiOperation( value = "暂不支持" ) @ApiImplicitParams({ @ApiImplicitParam(name = "Authorization", value = "用户登录凭证", paramType = "header", dataType = "string", defaultValue = "Bearer ", required = true), }) @GetMapping("/nick") ServiceResult change(@RequestParam(required = false, defaultValue = "") String password,
                                @RequestParam(required = false, defaultValue = "") String phone,
                                @RequestParam(required = false, defaultValue = "") String nickName); @ApiOperation( value = "修改用户昵称（当前登录用户操作）", notes = "修改用户昵称" ) @ApiImplicitParams({ @ApiImplicitParam(name = "Authorization", value = "用户登录凭证", paramType = "header", dataType = "string", defaultValue = "Bearer ", required = true), @ApiImplicitParam(name = "nickName", value = "用户昵称", required = true), }) @PutMapping("/update/{nickName}") @OperationRecord(type = OperationRecordLog.OperationType.UPDATE, resource = OperationRecordLog.OperationResource.USER, description = OperationRecordLog.OperationDescription.UPDATE_USER) ServiceResult changeNickName(@PathVariable String nickName);  }### Answer:
@Test public void changeNickName() throws Exception{ String url = ""; String nickname = "syl"; url = uri + "/update/"+ nickname; String contentAsString = put(url,null); logger.info(contentAsString); nickname = "aaaaa"; url = uri + "/update/"+ nickname; contentAsString = put(url,null); logger.info(contentAsString); nickname = "sylt"; url = uri + "/update/"+ nickname; contentAsString = put(url,null); logger.info(contentAsString); }