@Test
public void showsEclipseIndex() throws Exception {
String responseXml = Fixtures.load("/fixtures/tools/eclipse.xml");
stub(restTemplate.getForObject(anyString(), eq(String.class))).toReturn(responseXml);
MvcResult mvcResult = mockMvc.perform(get("/tools/eclipse"))
.andExpect(status().isOk())
.andExpect(content().contentTypeCompatibleWith("text/html"))
.andReturn();
Document document = Jsoup.parse(mvcResult.getResponse().getContentAsString());
assertThat(document.select("h1").text(), containsString("Eclipse"));
assertThat(document.text(), containsString("Spring Tool Suite"));
assertThat(document.text(), containsString("Groovy/Grails Tool Suite"));
assertThat(document.text(), containsString("Windows"));
}