public void executeQueryWithAndWithoutIndex(int expectedResults) {
    try {
      executeSimpleQuery(expectedResults);
    } catch (Exception e) {
      fail("Query execution failed. : " + e);
    }
    index = utils.createIndex("type", "\"type\"", SEPARATOR + "exampleRegion");
    try {
      executeSimpleQuery(expectedResults);
    } catch (Exception e) {
      fail("Query execution failed. : " + e);
    }
    utils.removeIndex("type", SEPARATOR + "exampleRegion");
  }
Tests adding entries to compact range index where there are undefined and null values
for the key
geode-core/src/integrationTest/java/org/apache/geode/cache/query/internal/index/CompactRangeIndexJUnitTest.java