@Test
@TestException(exception = ServiceException.class, msgRegExp = "PRXU02.*")
@TestDir
public void wrongConfigGroups() throws Exception {

  String dir = TestDirHelper.getTestDir().getAbsolutePath();
  Configuration conf = new Configuration(false);
  conf.set("server.services", StringUtils.join(",", Arrays.asList(GroupsService.class.getName(),
                                                                  ProxyUserService.class.getName())));
  conf.set("server.proxyuser.foo.hosts", "*");
  Server server = new Server("server", dir, dir, dir, dir, conf);
  server.init();
}