private void populateOffsetPortfolioValuesInRegion(String regionName, int size) {
    Region region = utils.getRegion(regionName);
    for (int i = 1; i <= size; i++) {
      region.put("KEY-" + i, new Portfolio(i + 1));
    }
  }
A sample test class using the QueryTestUtils
geode-core/src/integrationTest/java/org/apache/geode/cache/query/QueryTestUtilsJUnitTest.java