public List<Integer> getLocalBucketsListTestOnly() {
    final List<Integer> bucketList = new ArrayList<>();
    visitBuckets((bucketId, r) -> bucketList.add(bucketId));
    return bucketList;
  }
<i>Test Method</i> Return the list of all the bucket names in this data store.
geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegionDataStore.java