@@ -0,0 +1,1467 @@
+package edu.northwestern.bioinformatics.studycalendar.web;%0D%0A%0D%0Aimport org.easymock.classextension.EasyMock;%0D%0A%0D%0Aimport static org.easymock.classextension.EasyMock.*;%0D%0Aimport org.springframework.web.servlet.ModelAndView;%0D%0Aimport org.springframework.web.servlet.view.RedirectView;%0D%0Aimport gov.nih.nci.security.AuthenticationManager;%0D%0Aimport gov.nih.nci.security.exceptions.CSException;%0D%0Aimport edu.northwestern.bioinformatics.studycalendar.web.LogoutController;%0D%0Aimport edu.northwestern.bioinformatics.studycalendar.web.LoginController;%0D%0Aimport edu.northwestern.bioinformatics.studycalendar.utils.accesscontrol.ApplicationSecurityManager;%0D%0A%0D%0A/**%0D%0A * @author Jaron Sampson%0D%0A */%0D%0Apublic class LogoutControllerTest extends ControllerTestCase %7B%0D%0A%0D%0A    private LogoutController controller;%0D%0A%0D%0A    protected void setUp() throws Exception %7B%0D%0A        super.setUp();%0D%0A        controller = new LogoutController();        %0D%0A    %7D%0D%0A%0D%0A    public void testLogout() throws Exception %7B%0D%0A    %09ApplicationSecurityManager.setUser(request, %22jack%22);%0D%0A    %09controller.handleRequest(request, response);%0D%0A    %09assertNull(ApplicationSecurityManager.getUser(request));%0D%0A    %7D%0D%0A%0D%0A    public void testRedirect() throws Exception %7B%0D%0A    %09ApplicationSecurityManager.setUser(request, %22jill%22);%0D%0A    %09ModelAndView mv = new ModelAndView();%0D%0A    %09mv = controller.handleRequest(request, response);%0D%0A    %09assertEquals(%22Did not redirect to the login page%22, %22redirectToLogin%22, mv.getViewName()); %0D%0A    %7D%0D%0A%0D%0A%7D%0D%0A

Test logout and redirect.