public void configure(ProcessBuilder processBuilder) {
    List<String> command = processBuilder.command();
    command.add(1, String.format("-D%s=%d-%d", MEMBERSHIP_PORT_RANGE_PROPERTY,
      membershipPorts.lowerBound(), membershipPorts.upperBound()));
    command.add(1, String.format("-D%s=%d", AVAILABLE_PORT_LOWER_BOUND_PROPERTY,
      availablePorts.lowerBound()));
    command.add(1, String.format("-D%s=%d", AVAILABLE_PORT_UPPER_BOUND_PROPERTY,
      availablePorts.upperBound()));
  }
Configure the process builder to add this context's port ranges as system properties for the
process being launched.
build-tools/geode-testing-isolation/src/main/java/org/apache/geode/gradle/testing/isolation/PortRangeContext.java