@Override
  public boolean authorizeOperation(String regionName, OperationContext context) {
    logger.info(" Authorizing request ");
    if (context instanceof QueryOperationContext) {
      Object[] params = ((QueryOperationContext) context).getQueryParams();
      assertTrue(" Bind parameters should not be null", params != null);
      assertEquals(" 2 bind parameters should have been received.", 2, params.length);
    }
    return true;
  }
Test authorization class for testing the accessibility of query bind parameters from
QueryOperationContext

Used by test:

<li/>QueryParamsAuthorizationDUnitTest (via reflection)
geode-core/src/distributedTest/java/org/apache/geode/cache/query/dunit/QueryAuthorization.java