@Test
  public void testHiveDecimalWritable() {

    HiveDecimalWritable decWritable;

    HiveDecimal nullDec = null;
    decWritable = new HiveDecimalWritable(nullDec);
    assertTrue(!decWritable.isSet());
    decWritable = new HiveDecimalWritable("1");
    assertTrue(decWritable.isSet());

    // UNDONE: more!
  }
Unit tests for tsting the fast allocation-free conversion
between HiveDecimalWritable and Decimal128
storage-api/src/test/org/apache/hadoop/hive/serde2/io/TestHiveDecimalWritable.java