@Test
  public void testBug36421_part2() throws Exception {
    String[][] testData = {{"status", "'active'"},};
    String[] operators = {"="};
    for (String operator : operators) {
      for (final String[] testDatum : testData) {

        QueryObserverImpl observer = new QueryObserverImpl();
        QueryObserverHolder.setInstance(observer);
        CacheUtils.getRegion(SEPARATOR + "pos")
            .query(testDatum[0] + " " + operator + " " + testDatum[1]);
        if (!observer.isIndexesUsed) {
          fail("Index not used for operator '" + operator + "'");
        }
      }
    }
  }
Test to check if Region short cut method is used for querying, the index utilization occurs or
not
geode-core/src/integrationTest/java/org/apache/geode/cache/query/internal/index/IndexUseJUnitTest.java