@Test
  public void testSetEmptyValue() {
    TableDescriptorBuilder builder =
      TableDescriptorBuilder.newBuilder(TableName.valueOf(name.getMethodName()));
    String testValue = "TestValue";
    // test setValue
    builder.setValue(testValue, "2");
    assertEquals("2", builder.build().getValue(testValue));
    builder.setValue(testValue, "");
    assertNull(builder.build().getValue(Bytes.toBytes(testValue)));

    // test setFlushPolicyClassName
    builder.setFlushPolicyClassName("class");
    assertEquals("class", builder.build().getFlushPolicyClassName());
    builder.setFlushPolicyClassName("");
    assertNull(builder.build().getFlushPolicyClassName());
  }
Test default value handling for memStoreFlushSize
hbase-client/src/test/java/org/apache/hadoop/hbase/client/TestTableDescriptorBuilder.java