public void testUserLoggedOutAndRedirectedToBlogHomePage() throws Exception {
request.setParameter("redirectUrl", blog.getUrl());
RedirectView view = (RedirectView)action.process(request, response);
assertEquals(blog.getUrl(), view.getUri());
MockHttpSession session = (MockHttpSession)request.getSession();
assertNull(session.getAttribute(Constants.AUTHENTICATED_USER));
assertTrue(session.wasInvalidated());
}