@Test
public void getGroup() throws Exception {

    this.mockMvc = MockMvcBuilders.webAppContextSetup(this.wac).build();
    this.mockHttpSession = loginAsAdmin();
    this.mockMvc.perform(get("/srv/api/groups/2")
        .session(this.mockHttpSession)
        .accept(MediaType.parseMediaType("application/json")))
        .andExpect(status().isOk())
        .andExpect(jsonPath("$.name", is("sample")))
        .andExpect(content().contentType(API_JSON_EXPECTED_ENCODING));
}