### Question:
AuthController { @ResponseStatus(HttpStatus.OK) @RequestMapping(value = "/logout", method = RequestMethod.GET) public void logout(HttpServletRequest request, HttpServletResponse response) { String authToken = accessTokenService.getToken(request); if (authToken != null && !"".equals(authToken)) { accessTokenService.removeToken(authToken); } }  @RequestMapping(value = "/token", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE) AuthToken getToken(@RequestBody(required = false) WormholeUser user,
         @RequestHeader(name = "serviceKey", required = false) String serviceKey,
         HttpServletRequest request, HttpServletResponse response); @RequestMapping(value = "/token/refresh", method = RequestMethod.GET) AuthToken refreshToken(HttpServletRequest request, HttpServletResponse response); @ResponseStatus(HttpStatus.OK) @RequestMapping(value = "/logout", method = RequestMethod.GET) void logout(HttpServletRequest request, HttpServletResponse response); @ResponseStatus(HttpStatus.CREATED) @RequestMapping(value = "/user", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE) void createUser(@RequestBody WormholeUser user, HttpServletResponse response); @ResponseStatus(HttpStatus.OK) @RequestMapping(value = "/user/{id}", method = RequestMethod.DELETE) void deleteUser(@PathVariable String id); @ResponseStatus(HttpStatus.OK) @RequestMapping(value = "/user", method = RequestMethod.PUT, consumes = MediaType.APPLICATION_JSON_VALUE) void updateUser(@RequestBody WormholeUser user, HttpServletRequest request); @RequestMapping(value = "/user/{id}", method = RequestMethod.GET) WormholeUser readUser(@PathVariable(required = false) String id,
         HttpServletRequest request); @RequestMapping(value = "/user/username/{name}", method = RequestMethod.GET) WormholeUser readUserByName(@PathVariable(required = false) String name,
         HttpServletRequest request); @RequestMapping(value = "/user", method = RequestMethod.GET) Page<WormholeUser> queryUserByPageable(@RequestParam("currentPage") int currentPage,
         @RequestParam("pageSize") int pageSize); @ResponseStatus(HttpStatus.CREATED) @RequestMapping(value = "/role", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE) void createRole(@RequestBody WormholeRole role); @RequestMapping(value = "/role/{id}", method = RequestMethod.GET) WormholeRole readRole(@PathVariable String id); @RequestMapping(value = "/role", method = RequestMethod.GET) Page<WormholeRole> queryByPage(@RequestParam("currentPage") int currentPage,
         @RequestParam("pageSize") int pageSize); @ResponseStatus(HttpStatus.OK) @RequestMapping(value = "/role/{id}", method = RequestMethod.DELETE) void deleteRole(@PathVariable String id); @ResponseStatus(HttpStatus.OK) @RequestMapping(value = "/role", method = RequestMethod.PUT, consumes = MediaType.APPLICATION_JSON_VALUE) void updateRole(@RequestBody WormholeRole role); @RequestMapping(value = "/privileges", method = RequestMethod.GET) Set<String> getPrivilegeName(HttpServletRequest request);  }### Answer:
@Test public void testLogout() throws Exception { ValueOperations<String, String> valueOperations = Mockito.mock(ValueOperations.class); Mockito.doReturn(valueOperations).when(template).opsForValue(); this.mockMvc.perform(get("/v1/auth/logout").header("Authorization", "Bearer "+"R$TYUIMJ")) .andDo(document("AuthController-UserLogout-example")) .andExpect(status().isOk()) .andReturn(); }