@Test
  public void testBug36421_part1() throws Exception {
    String[][] testData = {{"status", "'active'"},};
    String[] operators = {"="};
    for (String operator : operators) {
      for (final String[] testDatum : testData) {
        Query q = qs.newQuery("SELECT DISTINCT * FROM $1 where " + testDatum[0] + " " + operator
            + " " + testDatum[1]);
        QueryObserverImpl observer = new QueryObserverImpl();
        QueryObserverHolder.setInstance(observer);
        q.execute(CacheUtils.getRegion(SEPARATOR + "pos"));
        if (!observer.isIndexesUsed) {
          fail("Index not used for operator '" + operator + "'");
        }
      }
    }
  }
Test to check if Region object is passed as bind argument, the index utilization occurs or not
geode-core/src/integrationTest/java/org/apache/geode/cache/query/internal/index/IndexUseJUnitTest.java