### Question:
ExceptionHandlerController { @RequestMapping("/rememberMe") public String handleRememberMeException(HttpServletRequest request) { RememberMeAuthenticationException exception = (RememberMeAuthenticationException) request.getAttribute("javax.servlet.error.exception"); LOGGER.error("RememberMe exception:", exception); return REDIRECT_TO_LOGIN; }  @RequestMapping("/rememberMe") String handleRememberMeException(HttpServletRequest request);  }### Answer:
@Test public void rememberMeExceptionHandlerShouldRedirectToLoginPage(){ String actualRedirectUrl = controller.handleRememberMeException(request); Assert.assertEquals(actualRedirectUrl, ExceptionHandlerController.REDIRECT_TO_LOGIN, "After exception handling controller must redirect to login page"); }