public void dumpBuckets() {
    final StringBuilder buf = new StringBuilder("Buckets in ").append(this).append("\n");
    visitBuckets((bucketId, r) -> buf.append("bucketId: ")
        .append(partitionedRegion.bucketStringForLogs(bucketId))
        .append(" bucketName: ").append(r).append("\n"));
    logger.debug(buf.toString());
  }
<i>Test Method</i> Dump all the bucket names in this data store to the logger
geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegionDataStore.java