@Override
    public boolean authorize(Method method, Object target) {
      if (restrictedMethodAuthorizer.authorize(method, target)) {
        return true;
      }

      return authorizedMethods.contains(method.getName());
    }
The test creates an index with a method invocation as part of the expression, changes
the {@link MethodInvocationAuthorizer} to the default one (denies everything) and executes a
region operation on the server that would cause an index mapping removal/addition.
The operation should succeed, the index should be marked as invalid and the error should be
logged.
geode-core/src/distributedTest/java/org/apache/geode/cache/query/internal/QueryConfigurationServiceConstraintsDistributedTest.java