request.setParameter("SAMLRequest", samlMessage);
request.setUserPrincipal(new GenericPrincipal(realm, "anil", "test", roles));
request.setMethod("POST");
// Lets start the workflow with post
idp.invoke(request, response);
String idpResponseString = new String(baos.toByteArray());
Document idpHTMLResponse = DocumentUtil.getDocument(idpResponseString);
nodes = idpHTMLResponse.getElementsByTagName("INPUT");
inputElement = (Element) nodes.item(0);