@Test
  public void canSerializeListOfDecimals() throws SerDeException, IOException {
    List<Buffer> bbList = new ArrayList<Buffer>();
    String[] decs = new String[] {"3.1416", "4.7779", "0.2312", "9.1000", "5.5555"};
    for (int i = 0; i < decs.length; i++) {
      bbList.add(AvroSerdeUtils.getBufferFromDecimal(HiveDecimal.create(decs[i]), 4));
    }
    String field = "{ \"name\":\"list1\", \"type\":{\"type\":\"array\"," +
        " \"items\":{\"type\":\"bytes\", \"logicalType\":\"decimal\", \"precision\":5, \"scale\":4}} }";
    GenericRecord r = serializeAndDeserialize(field, "list1", bbList);
    assertEquals(bbList, r.get("list1"));
  }
Verify that we can serialize an avro value by taking one, running it through
the deser process and then serialize it again.
serde/src/test/org/apache/hadoop/hive/serde2/avro/TestAvroSerializer.java