### Question:
ZNRecordBucketizer extends org.apache.helix.zookeeper.datamodel.ZNRecordBucketizer { public ZNRecordBucketizer(int bucketSize) { super(bucketSize); } ZNRecordBucketizer(int bucketSize);   }### Answer:
@Test public void testZNRecordBucketizer() { final int bucketSize = 3; ZNRecordBucketizer bucketizer = new ZNRecordBucketizer(bucketSize); String[] partitionNames = { "TestDB_0", "TestDB_1", "TestDB_2", "TestDB_3", "TestDB_4" }; for (int i = 0; i < partitionNames.length; i++) { String partitionName = partitionNames[i]; String bucketName = bucketizer.getBucketName(partitionName); int startBucketNb = i / bucketSize * bucketSize; int endBucketNb = startBucketNb + bucketSize - 1; String expectBucketName = "TestDB_p" + startBucketNb + "-p" + endBucketNb; System.out.println("Expect: " + expectBucketName + ", actual: " + bucketName); Assert.assertEquals(expectBucketName, bucketName); } }