MockHttpSession session = new MockHttpSession();
session.setupServletContext(context);
final MockHttpServletRequest request = new MockHttpServletRequest();
request.setSession(session);
MockHttpServletResponse response = new MockHttpServletResponse();
final RequestContext rc = new JetspeedRequestContext(rcc, request, response, config, null);
Set principals = new HashSet();
principals.add(new TestUser("admin"));
principals.add(new TestRole("user"));
principals.add(new TestRole("admin"));
Subject subject = new Subject(true, principals, new HashSet(), new HashSet());