@Test
  public void testStringCustomizedValues() throws HBaseException {
    byte[] familyName = Bytes.toBytes("cf");
    ColumnFamilyDescriptor hcd =
      ColumnFamilyDescriptorBuilder.newBuilder(familyName).setBlocksize(131072).build();
    TableDescriptor htd = TableDescriptorBuilder.newBuilder(TableName.valueOf(name.getMethodName()))
      .setColumnFamily(hcd).setDurability(Durability.ASYNC_WAL).build();

    assertEquals(
      "'testStringCustomizedValues', " + "{TABLE_ATTRIBUTES => {DURABILITY => 'ASYNC_WAL'}}, "
        + "{NAME => 'cf', BLOCKSIZE => '131072 B (128KB)'}",
      htd.toStringCustomizedValues());

    htd = TableDescriptorBuilder.newBuilder(htd).setMaxFileSize("10737942528")
      .setMemStoreFlushSize("256MB").setErasureCodingPolicy("RS-6-3-1024k").build();
    assertEquals(
      "'testStringCustomizedValues', " + "{TABLE_ATTRIBUTES => {DURABILITY => 'ASYNC_WAL', "
        + "ERASURE_CODING_POLICY => 'RS-6-3-1024k', MAX_FILESIZE => '10737942528 B (10GB 512KB)', "
        + "MEMSTORE_FLUSHSIZE => '268435456 B (256MB)'}}, "
        + "{NAME => 'cf', BLOCKSIZE => '131072 B (128KB)'}",
      htd.toStringCustomizedValues());
  }
Test default value handling for memStoreFlushSize
hbase-client/src/test/java/org/apache/hadoop/hbase/client/TestTableDescriptorBuilder.java