@Test
public void shouldReturnListOfBooks() throws Exception {

	when(bookService.findAll()).thenReturn(Arrays.asList(
					new Book("123", "Spring 5 Recipes", "Marten Deinum", "Josh Long"),
					new Book("321", "Pro Spring MVC", "Marten Deinum", "Colin Yates")));
	mockMvc.perform(get("/books.html"))
					.andExpect(status().isOk())
					.andExpect(view().name("books/list"))
					.andExpect(model().attribute("books", Matchers.hasSize(2)));
}