@Test
public void testHasPermissionForFunctionWithDirectlyGrantedFunctionGroup() throws Exception {

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