id = IDGenerator.create("ID_"); // regenerate
ResponseType responseType = response.createResponseType(id, issuerInfo, assertion);
SAML2Signature ss = new SAML2Signature();
ss.setSignatureMethod(SignatureMethod.DSA_SHA1);
Document signedDoc = ss.sign(responseType, kp);
Logger.getLogger(SignatureValidationUnitTestCase.class).debug(DocumentUtil.asString(signedDoc));
JAXPValidationUtil.validate(DocumentUtil.getNodeAsStream(signedDoc));
// Validate the signature