IDPInfoHolder idp = new IDPInfoHolder();
idp.setNameIDFormatValue("testPrincipal");
idp.setNameIDFormat(JBossSAMLURIConstants.NAMEID_FORMAT_PERSISTENT.get());
SPInfoHolder sp = new SPInfoHolder();
sp.setResponseDestinationURI("http://service");
sp.setIssuer("http://service.issuer");
responseType = saml2Response.createResponseType(id, sp, idp, issuerHolder);
AssertionType assertion = responseType.getAssertions().get(0).getAssertion();
AttributeStatementType attrStatement = StatementUtil.createAttributeStatement(roles);
assertion.addStatement(attrStatement);