@Test
  public void testMoveBucketToHostThatHasTheBucketAlready() {
    vm0.invoke(this::createPartitionedRegionWithoutRedundancyRecovery);
    vm1.invoke(this::createPartitionedRegionWithoutRedundancyRecovery);

    // Create a bucket
    vm0.invoke(() -> {
      Region<Integer, String> region = getCache().getRegion(regionName);
      region.put(0, "A");
    });

    InternalDistributedMember member1 = vm1.invoke(() -> getCache().getMyId());

    // Move the bucket
    vm0.invoke(() -> {
      verifyCannotMoveBucketToExistingHost(member1);
    });
  }
A test to make sure that we cannot move a bucket to a member which already hosts the bucket,
thereby reducing our redundancy.
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/partitioned/BucketCreationCrashCompletesRegressionTest.java