assertTrue("Unexpected type instead of AuthnStatement: " + authnStatementType.getClass().getSimpleName(),
authnStatementType instanceof AuthnStatementType);
assertNotNull("Unexpected null StatementAbstractType", statementAbstractType);
assertTrue("Unexpected type instead of AttributeStatement: " + statementAbstractType.getClass().getSimpleName(),
statementAbstractType instanceof AttributeStatementType);
AttributeStatementType attributeStatement = (AttributeStatementType) statementAbstractType;
List<ASTChoiceType> attributes = attributeStatement.getAttributes();
assertFalse("Unexpected empty list of attributes", attributes.isEmpty());
assertEquals("Unexpected number of attributes", 1, attributes.size());
Object attributeObject = attributes.iterator().next();
ASTChoiceType astChoice = (ASTChoiceType) attributeObject;
AttributeType attribute = astChoice.getAttribute();