private Locator startLocatorBase(Properties properties, int port) throws IOException {
    properties.setProperty(NAME, "vm" + VM.getCurrentVMNum());

    Locator locator = Locator.startLocatorAndDS(port, null, properties);
    system = (InternalDistributedSystem) locator.getDistributedSystem();

    return locator;
  }
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