@Test
public void testGetByGroupName() throws Exception {

    long groupId = createGroup("testgroup");
    createUser("test", Role.USER, "tesPW", groupId);
    UserGroup group = new UserGroup();
    group.setGroupName("testgroup");
    Collection<User> users = userService.getByGroup(group);
    assertEquals(1, users.size());
}