*
* @param document
* @throws Exception
*/
protected void validate(MockHttpServletResponse response) throws Exception {
GSSConfiguration configuration = (GSSConfiguration) applicationContext
.getBean("gssXmlConfiguration");
Parser parser = new Parser(configuration);
parser.validate(new StringReader(response.getOutputStreamContent()));
if (parser.getValidationErrors().size() > 0) {
for (Iterator it = parser.getValidationErrors().iterator(); it.hasNext();) {