@Test
public void getGroupUsers() throws Exception {

    Group sampleGroup = _groupRepo.findByName("sample");
    Assert.assertNotNull(sampleGroup);
    this.mockMvc = MockMvcBuilders.webAppContextSetup(this.wac).build();
    this.mockHttpSession = loginAsAdmin();
    this.mockMvc.perform(get("/srv/api/groups/" + sampleGroup.getId() + "/users")
        .session(this.mockHttpSession)
        .accept(MediaType.parseMediaType("application/json")))
        .andExpect(status().isOk())
        .andExpect(jsonPath("$", hasSize(2)))
        .andExpect(content().contentType(API_JSON_EXPECTED_ENCODING));
}