{
session = new MockHttpSession();
ssoSiteCredsOfSubject = new ArrayList<SSOSiteCredentials>();
DefaultSSOSiteCredentials siteCreds = new DefaultSSOSiteCredentials("http://www.localhost.com", "www.localhost.com");
siteCreds.setUsername("admin");
siteCreds.setPassword("admin");
ssoSiteCredsOfSubject.add(siteCreds);
siteCreds = new DefaultSSOSiteCredentials("http://www.localhost.com/basicauth", "www.localhost.com");
siteCreds.setUsername("basic");
siteCreds.setPassword("basic");
ssoSiteCredsOfSubject.add(siteCreds);
siteCreds = new DefaultSSOSiteCredentials("http://www.localhost.com/formauth", "www.localhost.com");
siteCreds.setFormAuthentication(true);
siteCreds.setFormUserField("user");
siteCreds.setFormPwdField("pass");
siteCreds.setUsername("form");
siteCreds.setPassword("form");
ssoSiteCredsOfSubject.add(siteCreds);
session.setAttribute(SSOReverseProxyIFramePortlet.SUBJECT_SSO_SITE_CREDS, ssoSiteCredsOfSubject);
}