In spring, I have found my MockMVC for a given url:
MvcResult result = this.mockMvc.perform( get(urlToFetch).sessionAttrs(sessionAttr))
.andExpect(status().isOk())
.andReturn();
Great. Now I want to see what the html that this would return is. How do I do that? I want a string representation of it (ie String theHtml = ...) so I can parse it and check it in my test.