@Test
public void showGuidesIndex() throws Exception {
stubRestClient.putResponse("/orgs/spring-guides/repos", Fixtures.githubRepoListJson());
MvcResult response = mockMvc.perform(get("/guides"))
.andExpect(status().isOk())
.andExpect(content().contentTypeCompatibleWith("text/html"))
.andReturn();
Document html = Jsoup.parse(response.getResponse().getContentAsString());
assertThat(html.select("ul li.active").text(), equalTo("Guides"));
Assert.assertThat(html.text(), containsString("Building a RESTful Web Service"));
Assert.assertThat(html.text(), containsString("Learn how to create a RESTful web service with Spring"));
Assert.assertThat(html.text(), containsString("Designing and Implementing RESTful Web Services with Spring"));
Assert.assertThat(html.text(),