@Test(expected = InvalidCredentialsException.class)
public void testHasPermissionForOrganizationNamedFunctionWithInvalidCredentials() throws Exception {

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