private void setCacheInVMs(VM... vms) {
    for (VM vm : vms) {
      vm.invoke(() -> PRQueryDUnitHelper.setCache(getCache()));
    }
  }
Test removing single index on a pr.
geode-core/src/distributedTest/java/org/apache/geode/cache/query/partitioned/PRBasicRemoveIndexDUnitTest.java