private void waitUntilTheSystemIsConnected(VM vm2, VM locatorVM) {
    await().until(() -> {
      assertThat(isSystemConnected())
          .describedAs("Distributed system should not have disconnected")
          .isTrue();

      checkSystemConnectedInVMs(vm2, locatorVM);
      return true;
    });
  }
a locator is restarted twice with a server and ends up in a split-brain
geode-core/src/distributedTest/java/org/apache/geode/distributed/LocatorDUnitTest.java