public static List<Keeper> getRandomAvailableTCPPortKeepers(int count) {
    return Stream.generate(AvailablePortHelper::availableKeeper)
        .limit(count)
        .collect(toList());
  }
Returns the specified number of port keepers.
geode-junit/src/main/java/org/apache/geode/internal/AvailablePortHelper.java