}
public void testParsingTwo() throws Exception {
loginModule.parseCredentials("foo:bar=baz,foo2:bar2=baz2", passwordCredentials);
assertEquals(2, passwordCredentials.size());
Iterator<NamedUsernamePasswordCredential> iterator = passwordCredentials.iterator();
NamedUsernamePasswordCredential cred = iterator.next();
checkCredential(cred, "foo", "bar", "baz");
cred = iterator.next();
checkCredential(cred, "foo2", "bar2", "baz2");
}