@Override
  public void doFilter(HttpRequest request, HttpResponse response, FilterChain chain) throws IOException {
    if (userSession.hasSession() && userSession.isLoggedIn() && userSession.shouldResetPassword()) {
      redirectTo(response, request.getContextPath() + RESET_PASSWORD_PATH);
    }

    chain.doFilter(request, response);
  }
@Test
  public void redirect_if_reset_password_set() throws Exception {
    underTest.doFilter(request, response, chain);

    verify(response).sendRedirect("/account/reset_password");
  }