title: Opensaml - tamper saml response for testing
body: <p>I need to test a service provider implementation and we are using opensaml. I want to alter a given saml response and do permutation of assertion s elements , inject more assertion and so on. I was able to cover some cases by using opensaml method itself like getassertions on saml response object. But i see that if i want to move elements around or do more complex manipulation i would need to play with the respone as dom document . Does opensaml provide such funcutionality?  If not how i can create an encoded response from the modified xml?.thanks</p>