mockObjectRepositoryControl = MockControl.createControl(ObjectRepository.class);
mockObjectRepository = (ObjectRepository)mockObjectRepositoryControl.getMock();
mockSessionControl = MockControl.createControl(Session.class);
mockSession = (Session)mockSessionControl.getMock();
ThreadSession.set(mockSession);
support = new XPlannerTestSupport();
support.setUpSubjectInRole("editor");
ThreadServletRequest.set(support.request);
mockAuthorizerControl = MockControl.createControl(Authorizer.class);
mockAuthorizer = (Authorizer)mockAuthorizerControl.getMock();
SystemAuthorizer.set(mockAuthorizer);