XConfiguration conf = new XConfiguration();
conf.set("server.services", StringUtils.toString(Arrays.asList(GroupsService.class.getName(),
ACLService.class.getName()), ","));
Server server = new Server("server", dir, dir, dir, dir, conf);
server.init();
ACL acl = server.get(ACL.class);
String user = System.getProperty("user.name");
Groups groups = server.get(Groups.class);
String group = groups.getGroups(user).get(0);
acl.validate(user, "root", "bar," + group);
server.destroy();
}