@Override
    public void hook(int spot) throws RuntimeException {
      lastHook = spot;
      if (spot == 1) { // LT size estimate
        CacheUtils.getCache().getRegion("testRgn").clear();
      } else if (spot == 2) { // GT size estimate
        CacheUtils.getCache().getRegion("testRgn").clear();
      }
    }
Test to check if Region short cut method is used for querying, the Primary key index
utilization occurs or not
geode-core/src/integrationTest/java/org/apache/geode/cache/query/internal/index/IndexUseJUnitTest.java