@Test
public void testHasPermissionWithoutAccessToParentFunctionGroup() throws Exception {

  String content = "" +
          "function.group1.members = group2\n" +
          "function.group2.members = function\n" +
          "subject.1.name = subject\n" +
          "organization.1.name = organization\n" +
          "subject.1.permission.1 = group2" +
          "";
  setup(content);
  assertFalse(accessController.hasPermission(createCredentials(1), createFunctionIdentifier("group1")));
  assertFalse(accessController.hasPermission(createCredentials(1), () -> "group1"));
}