public List<Integer> getLocalBucketsListTestOnly() {
    List<Integer> localBucketList = null;
    if (dataStore != null) {
      localBucketList = dataStore.getLocalBucketsListTestOnly();
    }
    return localBucketList;
  }
A test method to get the list of all the bucket ids for the partitioned region in the data
Store.
geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegion.java