@Ignore("not a real test")
  @Test
  public void testRandom() throws UnknownHostException {
    long seed = System.nanoTime();
    System.out.println("random seed=" + seed);

    Random rand = new Random(seed);
    int MAX_MEMBERS = 20;
    int MAX_BUCKETS = 200;
    int MAX_REDUNDANCY = 3;
    float IMAIRED_PERCENTAGE = 0.1f; // probability that a bucket will have impaired redundancy
    int AVERAGE_BUCKET_SIZE = 10;
    int AVERAGE_MAX_MEMORY = 200;
    int members = rand.nextInt(MAX_MEMBERS) + 2;
    int buckets = rand.nextInt(MAX_BUCKETS) + members;
    int redundancy = rand.nextInt(MAX_REDUNDANCY);
    long[][] bucketLocations = new long[members][buckets];
    long[][] bucketPrimaries = new long[members][buckets];
    for (int i = 0; i < buckets; i++) {
      int bucketSize = rand.nextInt(AVERAGE_BUCKET_SIZE * 2);

      int remainingCopies = redundancy + 1;
      if (rand.nextFloat() <= IMAIRED_PERCENTAGE) {
        remainingCopies = redundancy == 0 ? 0 : rand.nextInt(redundancy);
      }

      if (remainingCopies > 0) {
        int primary = rand.nextInt(members);
        bucketLocations[primary][i] = bucketSize;
        bucketPrimaries[primary][i] = 1;
        remainingCopies--;
      }

      while (remainingCopies > 0) {
        int member = rand.nextInt(members);
        if (bucketLocations[member][i] == 0) {
          bucketLocations[member][i] = bucketSize;
          remainingCopies--;
        }
      }
    }

    PartitionedRegionLoadModel model =
        new PartitionedRegionLoadModel(bucketOperator, redundancy, buckets,
            getAddressComparor(false), Collections.emptySet(), partitionedRegion);
    PartitionMemberInfoImpl[] details = new PartitionMemberInfoImpl[members];
    for (int i = 0; i < members; i++) {
      InternalDistributedMember member =
          new InternalDistributedMember(InetAddress.getByName("127.0.0.1"), i);
      int maxMemory = rand.nextInt(AVERAGE_MAX_MEMORY * 2);
      details[i] =
          buildDetails(member, maxMemory, maxMemory, bucketLocations[i], bucketPrimaries[i]);
    }

    model.addRegion("a", Arrays.asList(details), new FakeOfflineDetails(), true);

    doMoves(new CompositeDirector(true, true, true, true), model);
  }
This is more of a simulation than a test
geode-core/src/test/java/org/apache/geode/internal/cache/partitioned/rebalance/PartitionedRegionLoadModelJUnitTest.java