@Override
    public void startQuery(Query query) {
      invocations.incrementAndGet();

      InternalCache internalCache = ClusterStartupRule.getCache();
      assertThat(internalCache).isNotNull();
      internalCache.getService(QueryConfigurationService.class)
          .updateMethodAuthorizer(internalCache, false, authorizerClassName, authorizerParameters);
    }
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