@Test
  public void testStartLocator() {
    Properties props = new Properties();
    int unusedPort = getRandomAvailableTCPPort();
    props.setProperty(MCAST_PORT, "0");
    props.setProperty(START_LOCATOR, "localhost[" + unusedPort + "],server=false,peer=true");
    deleteStateFile(unusedPort);
    createSystem(props);
    Collection<Locator> locators = Locator.getLocators();
    assertThat(locators).hasSize(1);
    Locator locator = locators.iterator().next();
    // Assert.assertIndexDetailsEquals("127.0.0.1", locator.getBindAddress().getHostAddress());
    // removed this check for ipv6 testing
    assertThat(unusedPort).isEqualTo(locator.getPort());
    deleteStateFile(unusedPort);
  }
Create a <Code>DistributedSystem</code> with a non-default name.
geode-core/src/integrationTest/java/org/apache/geode/distributed/internal/InternalDistributedSystemIntegrationTest.java