assertThat(xpath.evaluate("/feed/icon", doc), is("http://www.example.com/favicon.ico"));
}
private Document doGetForDocument(String path) throws Exception {
ResultActions resultActions = mockMvc.perform(get(path));
MvcResult mvcResult = resultActions.andReturn();
return getAtomFeedDocument(mvcResult);
}
private Document getAtomFeedDocument(MvcResult mvcResult) throws ParserConfigurationException, SAXException, IOException {
String atomFeed = mvcResult.getResponse().getContentAsString();