assertion.addStatement(StatementUtil.createAttributeStatement(roles));
assertion.addStatement(StatementUtil.createAttributeStatement("SomeAttrib", "testX"));
try {
SamlCredential cred = new SamlCredential(AssertionUtil.asString(assertion));
ObjectCallback obj = (ObjectCallback) callbacks[0];
obj.setCredential(cred);
} catch (ProcessingException e) {
throw new RuntimeException(e);
}
}