@Test
  public void testHostingMultipleLocators() throws Exception {
    Locator.startLocator(port1, null);

    assertThatThrownBy(() -> Locator.startLocator(port2, null))
        .isInstanceOf(IllegalStateException.class);
  }
Tests that a single VM can NOT host multiple locators
geode-core/src/distributedTest/java/org/apache/geode/distributed/LocatorDUnitTest.java