@Test
public void testHasPermissionForOrganizationWithPermissionsInheritedFromSubjectGroup() throws Exception {

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