@Test
  public void testUnsupportedMultiIteratorIndexes() throws RegionNotFoundException,
      IndexInvalidException, IndexNameConflictException, IndexExistsException {
    RegionFactory<Object, Object> rf = gfc.createRegionFactory();
    rf.setOffHeap(true);
    rf.setIndexMaintenanceSynchronous(true);
    rf.create("r");
    QueryService qs = gfc.getQueryService();
    try {
      qs.createIndex("idx", "addr", SEPARATOR + "r r, r.addresses addr");
      fail("expected UnsupportedOperationException");
    } catch (UnsupportedOperationException expected) {
      assertEquals(
          "From clauses having multiple iterators(collections) are not supported for off-heap regions. The off-heap region is "
              + SEPARATOR + "r",
          expected.getMessage());
    }
  }
Test off-heap regions with indexes.
geode-core/src/integrationTest/java/org/apache/geode/internal/offheap/OffHeapIndexJUnitTest.java