public static void setAllVMsToCurrentVersion() {
    int numHosts = getHostCount();
    for (int hostIndex = 0; hostIndex < numHosts; hostIndex++) {
      Host host = Host.getHost(hostIndex);
      int numVMs = host.getVMCount();
      for (int i = 0; i < numVMs; i++) {
        try {
          host.getVM(VmConfiguration.current(), i);
        } catch (UnsupportedOperationException e) {
          // not all implementations support versioning
        }
      }
    }
  }
Reset all VMs to be using the current version of Geode. Some backward-compatibility tests will
set a VM to a different version. This will ensure that all are using the current build.
geode-dunit/src/main/java/org/apache/geode/test/dunit/Host.java