@Test
  public void testNewFunc() throws Exception {
    Region region = CacheUtils.createRegion("portfolios", Portfolio.class);
    for (int i = 0; i < 4; i++) {
      region.put("" + i, new Portfolio(i));
      // CacheUtils.log(new Portfolio(i));
    }

    Object[][] r = new Object[2][2];
    QueryService qs;
    qs = CacheUtils.getQueryService();

    String[] queries =
        {"SELECT DISTINCT * from " + SEPARATOR
            + "portfolios pf , pf.positions.values pos where status = 'inactive'",
            "select distinct * from " + SEPARATOR + "portfolios where ID > 1 ",

        };

    for (int i = 0; i < queries.length; i++) {
      Query q = null;
      q = CacheUtils.getQueryService().newQuery(queries[i]);
      QueryObserverImpl observer1 = new QueryObserverImpl();
      QueryObserverHolder.setInstance(observer1);
      r[i][0] = q.execute();
    }

    qs.createIndex("sIndex", IndexType.FUNCTIONAL, "status", SEPARATOR + "portfolios");
    qs.createIndex("iIndex", IndexType.FUNCTIONAL, "ID", SEPARATOR + "portfolios");
    for (int i = 0; i < queries.length; i++) {
      Query q = null;
      q = CacheUtils.getQueryService().newQuery(queries[i]);
      QueryObserverImpl observer2 = new QueryObserverImpl();
      QueryObserverHolder.setInstance(observer2);
      r[i][1] = q.execute();
      if (!observer2.isIndexesUsed) {
        fail("Index NOT Used");
      }
    }

    StructSetOrResultsSet ssORrs = new StructSetOrResultsSet();
    ssORrs.CompareQueryResultsWithoutAndWithIndexes(r, queries.length, queries);
  }
TODO: does this test provide any valuable coverage?
geode-core/src/integrationTest/java/org/apache/geode/cache/query/functional/TestNewFunctionSSorRSIntegrationTest.java