assertEquals("b07b804c-7c29-ea16-7300-4f3d6f7928ac", authnStatement.getSessionIndex());
AttributeStatementType attributeStatement = (AttributeStatementType) iter.next();
List<ASTChoiceType> attributes = attributeStatement.getAttributes();
assertEquals(1, attributes.size());
AttributeType attribute = attributes.get(0).getAttribute();
assertEquals("eduPersonAffiliation", attribute.getFriendlyName());
assertEquals("urn:oid:1.3.6.1.4.1.5923.1.1.1.1", attribute.getName());
assertEquals("urn:oasis:names:tc:SAML:2.0:attrname-format:uri", attribute.getNameFormat());
// Ensure that we have x500:encoding
QName x500EncodingName = new QName(JBossSAMLURIConstants.X500_NSURI.get(), JBossSAMLConstants.ENCODING.get());
String encodingValue = attribute.getOtherAttributes().get(x500EncodingName);
assertEquals("LDAP", encodingValue);
List<Object> attributeValues = attribute.getAttributeValue();
assertEquals(2, attributeValues.size());
String str = (String) attributeValues.get(0);
if (!(str.equals("member") || str.equals("staff")))
throw new RuntimeException("attrib value not found");