authenticationHandler.generateSAMLRequest(request, response);
verificationHandler.generateSAMLRequest(request, response);
// Parse document and verify that ID is saved in Http session
Document samlReqDoc = response.getResultingDocument();
SAMLParser parser = new SAMLParser();
AuthnRequestType authnRequest = (AuthnRequestType) parser.parse(DocumentUtil.getNodeAsStream(samlReqDoc));
assertEquals(authnRequest.getID(), servletRequest.getSession().getAttribute(GeneralConstants.AUTH_REQUEST_ID));
// 3) SEND SAML AUTHENTICATION REQUEST TO IDP
// Generate request and response for IDP