@Test
  @Ignore("GEODE-7760 - test sometimes hangs due to product issue")
  public void testCrashLocatorMultipleTimes() throws Exception {
    port1 = getRandomAvailableTCPPort();
    DistributedTestUtils.deleteLocatorStateFile(port1);
    File logFile = new File("");
    File stateFile = new File("locator" + port1 + "state.dat");
    VM vm = VM.getVM(0);
    final Properties properties =
        getBasicProperties(Host.getHost(0).getHostName() + "[" + port1 + "]");
    int memberTimeoutMS = 3000;
    properties.put(MEMBER_TIMEOUT, "" + memberTimeoutMS);
    properties.put(MAX_WAIT_TIME_RECONNECT, "" + (3 * memberTimeoutMS));
    // since we're restarting location services let's be a little forgiving about that service
    // starting up so that stress-tests can pass
    properties.put(LOCATOR_WAIT_TIME, "" + 3);
    addDSProps(properties);
    if (stateFile.exists()) {
      assertThat(stateFile.delete()).isTrue();
    }

    IgnoredException
        .addIgnoredException("Possible loss of quorum due to the loss of 1 cache processes");

    Locator locator = Locator.startLocatorAndDS(port1, logFile, properties);
    system = (InternalDistributedSystem) locator.getDistributedSystem();

    vm.invoke(() -> {
      getConnectedDistributedSystem(properties);
      return null;
    });

    try {
      for (int i = 0; i < 4; i++) {
        forceDisconnect();
        system.waitUntilReconnected(GeodeAwaitility.getTimeout().toMillis(), MILLISECONDS);
        assertThat(system.getReconnectedSystem()).isNotNull();
        system = (InternalDistributedSystem) system.getReconnectedSystem();
      }
      assertEquals(2, ((InternalDistributedSystem) locator.getDistributedSystem()).getDM()
          .getViewMembers().size());
    } finally {
      vm.invoke("disconnect", () -> {
        getConnectedDistributedSystem(properties).disconnect();
        return null;
      });
      locator.stop();
    }

  }
find the lead member and return its id
geode-core/src/distributedTest/java/org/apache/geode/distributed/LocatorDUnitTest.java