### Question:
AuthController { @SuppressWarnings("unchecked") @PostMapping("/token") @ApiOperation(value = "获取token", notes = "登录获取token") @ApiImplicitParam(value = "封装登录请求对象", required = true, dataType = "JwtAuthenticationRequest", name = "authenticationRequest") public ObjectRestResponse<JwtAuthenticationResponse> createAuthenticationToken(@RequestBody JwtAuthenticationRequest authenticationRequest) { try { log.debug("***weiming专用日志打印语句：***用户：【{}】进行登录***", authenticationRequest.getLoginname()); String token = authService.login(authenticationRequest); return new ObjectRestResponse<JwtAuthenticationResponse>().data(new JwtAuthenticationResponse(token)); } catch (NoSuchAlgorithmException | InvalidKeySpecException e) { log.error("***weiming专用日志打印语句：***错误信息：【{}】***",e); throw new AuthException("login fail"); } catch (AuthException e) { throw e; } }  @SuppressWarnings("unchecked") @PostMapping("/token") @ApiOperation(value = "获取token", notes = "登录获取token") @ApiImplicitParam(value = "封装登录请求对象", required = true, dataType = "JwtAuthenticationRequest", name = "authenticationRequest") ObjectRestResponse<JwtAuthenticationResponse> createAuthenticationToken(@RequestBody JwtAuthenticationRequest authenticationRequest);  }### Answer:
@Test public void test() { JwtAuthenticationRequest authenticationRequest = new JwtAuthenticationRequest(); authenticationRequest.setLoginname("admin"); authenticationRequest.setPassword("qqq123"); try { ObjectRestResponse<JwtAuthenticationResponse> responseEntity = controller.createAuthenticationToken(authenticationRequest ); JwtAuthenticationResponse token = responseEntity.getData(); log.info("************token:【{}】************",token.getToken()); } catch (Exception e) { e.printStackTrace(); } }