String dir = getTestDir().getAbsolutePath();
XConfiguration conf = new XConfiguration();
conf.set("server.services", StringUtils.toString(Arrays.asList(GroupsService.class.getName()), ","));
Server server = new Server("server", dir, dir, dir, dir, conf);
server.init();
Groups groups = server.get(Groups.class);
Assert.assertNotNull(groups);
List<String> g = groups.getGroups(System.getProperty("user.name"));
Assert.assertNotSame(g.size(), 0);
server.destroy();
}