@Test
  public void testQueriesForValueInMapFieldWithMapIndexWithStar() throws Exception {
    IndexManager.TEST_RANGEINDEX_ONLY = true;
    region =
        CacheUtils.getCache().createRegionFactory(RegionShortcut.REPLICATE).create("portfolio");
    qs = CacheUtils.getQueryService();

    keyIndex1 = qs.createIndex(INDEX_NAME, "positions[*]", SEPARATOR + "portfolio ");

    Class<MapRangeIndex> indexType = MapRangeIndex.class;
    assertThat(keyIndex1).isInstanceOf(indexType);
    testQueriesForValueInMapField(region, qs);
    verifyStatsForQueriesForValueInMapFieldWithAnyMapIndexWithStar(indexType);
  }
Test index object's comapreTo Function implementation correctness for indexes.
geode-core/src/integrationTest/java/org/apache/geode/cache/query/internal/index/MapRangeIndexMaintenanceJUnitTest.java