* @param replaceRole flag whether the role has been replaced in the subject
* @throws LoginException
*/
private void processLogin(String config, boolean replaceRole) throws LoginException
{
Subject subject = new Subject();
LoginContext lc = new LoginContext(config,subject, new TestCallbackHandler());
lc.login();
subject = lc.getSubject();
Iterator iter = subject.getPrincipals().iterator();
boolean ranAsserts = false;
while(iter.hasNext())
{
Principal p = (Principal)iter.next();
if(p instanceof SimpleGroup)