@Test
  public void testCompactMapIndexUsageAllKeysOneIndex() throws Exception {
    QueryService qs = CacheUtils.getQueryService();
    LocalRegion testRgn = (LocalRegion) CacheUtils.createRegion("testRgn", null);
    int ID = 1;
    for (; ID <= 30; ++ID) {
      TestObject object = new TestObject(ID);
      testRgn.put(ID, object);
    }
    String[] queries =
        {"SELECT DISTINCT * FROM " + SEPARATOR
            + "testRgn itr1  WHERE itr1.testFields['string'] = '1'",
            "SELECT DISTINCT * FROM " + SEPARATOR
                + "testRgn itr1  WHERE itr1.testFields['double'] > 1D",
            "SELECT DISTINCT * FROM " + SEPARATOR
                + "testRgn itr1  WHERE itr1.testFields['integer'] > 1",
            "SELECT DISTINCT * FROM " + SEPARATOR
                + "testRgn itr1  WHERE itr1.testFields['long'] > 1L"};
    String[] queriesIndexNotUsed =
        {"SELECT DISTINCT * FROM " + SEPARATOR
            + "testRgn itr1  WHERE itr1.testFields.get('string') = '1'",
            "SELECT DISTINCT * FROM " + SEPARATOR
                + "testRgn itr1  WHERE itr1.testFields.get('double') > 1D",
            "SELECT DISTINCT * FROM " + SEPARATOR
                + "testRgn itr1  WHERE itr1.testFields.get('integer') > 1",
            "SELECT DISTINCT * FROM " + SEPARATOR
                + "testRgn itr1  WHERE itr1.testFields.get('long') > 1L"};
    evaluateMapTypeIndexUsage("itr1.testFields['string','double','integer','long']",
        SEPARATOR + "testRgn itr1", queries, queriesIndexNotUsed, CompactMapRangeIndex.class);
  }
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