@Test
  @SetSystemProperty(key = ALLOW_MULTIPLE_SYSTEMS_PROPERTY, value = "true")
  public void connectWithAllowsMultipleSystems() {
    String name1 = "name1";
    Properties configProperties1 = new Properties();
    configProperties1.setProperty(NAME, name1);

    system = (InternalDistributedSystem) DistributedSystem.connect(configProperties1);

    String name2 = "name2";
    Properties configProperties2 = new Properties();
    configProperties2.setProperty(NAME, name2);

    final InternalDistributedSystem system2 =
        (InternalDistributedSystem) DistributedSystem.connect(configProperties2);
    try {
      assertThat(system.isConnected()).isTrue();
      assertThat(system.getName()).isEqualTo(name1);

      assertThat(system2.isConnected()).isTrue();
      assertThat(system2.getName()).isEqualTo(name2);

      assertThat(system2).isNotSameAs(system);
    } finally {
      system2.disconnect();
    }
  }
Create a <Code>DistributedSystem</code> with a non-default name.
geode-core/src/integrationTest/java/org/apache/geode/distributed/internal/InternalDistributedSystemIntegrationTest.java