@Test
public void should_retrieve_a_page_representation_by_its_id() throws Exception {

    Page expectedPage = aFilledPage("my-page");
    when(pageService.get("my-page")).thenReturn(expectedPage);
    mockMvc
            .perform(get("/rest/pages/my-page"))
            .andDo(print())
            .andExpect(status().isOk())
            .andExpect(content().contentType("application/json;charset=UTF-8"))
            .andExpect(jsonPath("$", notNullValue()));
}