}
};
session.setAttribute(Seam.getComponentName(Identity.class), identity);
HttpServletRequest request = new MockHttpServletRequest(session, JAAS_USER, new HashSet<String>(Arrays.asList(JAAS_ROLE)), null, "GET");
return new IdentityRequestWrapper(request);
}