@Test
  public void testAddValues() {
    switch (type) {
      case BOOLEAN_TYPE:
        testBooleanValues();
        break;
      case TINYINT_TYPE:
      case SMALLINT_TYPE:
      case INT_TYPE:
      case BIGINT_TYPE:
        testAllIntegerTypeValues();
        break;
      case DOUBLE_TYPE:
      case FLOAT_TYPE:
        testFloatAndDoubleValues();
        break;
      case BINARY_TYPE:
        testBinaryValues();
        break;
      case STRING_TYPE:
        testStringValues();
        break;
      default:
        throw new IllegalArgumentException("Invalid type " + type);
    }
  }
Test if the nulls BitSet is maintained properly when we extract subset from ColumnBuffer.
E.g. suppose we have a ColumnBuffer with nulls [0, 0, 1, 0]. When we split it evenly into
two subsets, the subsets should have nulls [0, 0] and [1, 0] respectively.
serde/src/test/org/apache/hadoop/hive/serde2/thrift/TestColumnBuffer.java