@Test
  public void testSetEmptyValue() {
    ColumnFamilyDescriptorBuilder builder =
      ColumnFamilyDescriptorBuilder.newBuilder(HConstants.CATALOG_FAMILY);
    String testConf = "TestConfiguration";
    String testValue = "TestValue";
    // test set value
    builder.setValue(testValue, "2");
    assertEquals("2", Bytes.toString(builder.build().getValue(Bytes.toBytes(testValue))));
    builder.setValue(testValue, "");
    assertNull(builder.build().getValue(Bytes.toBytes(testValue)));

    // test set configuration
    builder.setConfiguration(testConf, "1");
    assertEquals("1", builder.build().getConfigurationValue(testConf));
    builder.setConfiguration(testConf, "");
    assertNull(builder.build().getConfigurationValue(testConf));
  }
Test for verifying the ColumnFamilyDescriptorBuilder's default values so that backward
compatibility with hbase-1.x can be mantained (see HBASE-24981).
hbase-client/src/test/java/org/apache/hadoop/hbase/client/TestColumnFamilyDescriptorBuilder.java