private void prepareTest(String testId) throws IOException {
    tableName = TableName.valueOf("test_table_" + testId);
    TableDescriptorBuilder tableDescriptorBuilder = TableDescriptorBuilder.newBuilder(tableName);
    columnFamilyDescriptorBuilder = ColumnFamilyDescriptorBuilder.newBuilder(Bytes.toBytes(CF));
    tableDescriptorBuilder.setColumnFamily(columnFamilyDescriptorBuilder.build());
    try (Admin admin = TEST_UTIL.getConnection().getAdmin()) {
      admin.createTable(tableDescriptorBuilder.build());
    }
    numBatchesWritten = 0;
  }
A zero-based index of the current batch of test data being written
hbase-server/src/test/java/org/apache/hadoop/hbase/io/encoding/TestChangingEncoding.java