@Test
  public void testQueries() {
    utils.initializeQueryMap();
    String[] queries = {"1"}; // SELECT * FROM /exampleRegion WHERE status = 'active'
    int results = 0;
    try {
      for (Object result : utils.executeQueries(queries)) {
        if (result instanceof SelectResults) {
          Collection<?> collection = ((SelectResults<?>) result).asList();
          results = collection.size();
          assertEquals(5, results);
          for (Object e : collection) {
            if (e instanceof Portfolio) {
              assertEquals(true, ((Portfolio) e).isActive());
            }
          }
        }
      }
    } catch (Exception e) {
      fail("Query execution failed. : " + e);
    }
    // execute all the queries from the map
    // utils.executeAllQueries();
  }
A sample test class using the QueryTestUtils
geode-core/src/integrationTest/java/org/apache/geode/cache/query/QueryTestUtilsJUnitTest.java