@Override
    public boolean equals(Object o) {
      if (this == o) {
        return true;
      }
      if (o == null || getClass() != o.getClass()) {
        return false;
      }
      QueryObject that = (QueryObject) o;
      if (getId() != that.getId()) {
        return false;
      }

      return getName() != null ? getName().equals(that.getName()) : that.getName() == null;
    }
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