@Test
  public void testPortRange() throws Exception {
    Properties config = new Properties();
    config.put(LOCATORS, "localhost[" + getDUnitLocatorPort() + "]");
    System.clearProperty(GEMFIRE_PREFIX + MEMBERSHIP_PORT_RANGE);
    config.setProperty(MEMBERSHIP_PORT_RANGE,
        lowerBoundOfPortRange + "-" + upperBoundOfPortRange);

    InternalDistributedSystem system = getSystem(config);
    ClusterDistributionManager dm = (ClusterDistributionManager) system.getDistributionManager();
    InternalDistributedMember member = dm.getDistributionManagerId();

    verifyMembershipPortsInRange(member, lowerBoundOfPortRange, upperBoundOfPortRange);
  }
test that loopback cannot be used as a bind address when a locator w/o a bind address is being
used
geode-core/src/distributedTest/java/org/apache/geode/distributed/DistributedSystemDUnitTest.java