private int executeSimpleQuery(int expResults) throws Exception {
    String[] queries = {"519"}; // SELECT * FROM /exampleRegion WHERE \"type\" = 'type1'
    int results = 0;
    for (Object result : utils.executeQueries(queries)) {
      if (result instanceof SelectResults) {
        Collection<?> collection = ((SelectResults<?>) result).asList();
        results = collection.size();
        assertEquals(expResults, results);
        for (Object e : collection) {
          if (e instanceof Portfolio) {
            assertEquals("type1", ((Portfolio) e).getType());
          }
        }
      }
    }
    return results;
  }
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