@Before
  public void setUp() {
    addIgnoredException("Removing shunned member");

    vm0 = getVM(0);
    vm1 = getVM(1);
    vm2 = getVM(2);
    vm3 = getVM(3);
    vm4 = getVM(4);

    hostName = NetworkUtils.getServerHostName();

    int[] ports = AvailablePortHelper.getRandomAvailableTCPPorts(4);
    port1 = ports[0];
    port2 = ports[1];
    port3 = ports[2];
    port4 = ports[3];
    Invoke.invokeInEveryVM(() -> deleteLocatorStateFile(port1, port2, port3, port4));
    addIgnoredException(MemberDisconnectedException.class); // ignore this suspect string
    addIgnoredException(MembershipConfigurationException.class); // ignore this suspect string
  }
Tests the ability of the {@link Locator} API to start and stop locators running in remote VMs.

@since GemFire 4.0
geode-core/src/distributedTest/java/org/apache/geode/distributed/LocatorDUnitTest.java