@Test
  public void test()
    throws IllegalAccessException, InvocationTargetException, NoSuchMethodException {
    Map<Method, Enum<?>> getMethod2Value = new HashMap<>();
    ColumnFamilyDescriptorBuilder builder =
      ColumnFamilyDescriptorBuilder.newBuilder(Bytes.toBytes("test"));
    for (Method method : ColumnFamilyDescriptor.class.getMethods()) {
      if (method.getParameterCount() == 0 && method.getReturnType().isEnum()) {
        LOG.info("Checking " + method);
        Class<?> enumType = method.getReturnType();
        Method setMethod = getSetMethod(method, enumType);
        Enum<?> enumConst = getEnumValue(enumType);
        LOG.info("Using " + setMethod + " to set the value to " + enumConst);
        setMethod.invoke(builder, enumConst);
        getMethod2Value.put(method, enumConst);
      }
    }
    ColumnFamilyDescriptor desc = builder.build();
    ColumnFamilyDescriptorBuilder builder2 =
      ColumnFamilyDescriptorBuilder.newBuilder(Bytes.toBytes("test2"));
    desc.getValues().forEach((k, v) -> {
      LOG.info(k.toString() + "=>" + v.toString());
      String str = Bytes.toString(v.get(), v.getOffset(), v.getLength());
      if (contains(getMethod2Value.values(), str)) {
        LOG.info("Set to lower case " + str.toLowerCase());
        builder2.setValue(k, new Bytes(Bytes.toBytes(str.toLowerCase())));
      }
    });

    ColumnFamilyDescriptor desc2 = builder2.build();
    for (Map.Entry<Method, Enum<?>> entry : getMethod2Value.entrySet()) {
      assertEquals(entry.getKey() + " should return " + entry.getValue(), entry.getValue(),
        entry.getKey().invoke(desc2));
    }
  }
Testcase for HBASE-21732. Make sure that all enum configurations can accept lower case value.
hbase-client/src/test/java/org/apache/hadoop/hbase/client/TestColumnFamilyDescriptorLowerCaseEnum.java