@Test
  public void testDeserializeAndSerializeAllNull() throws Exception {
    BytesWritable in = new BytesWritable(BaseEncoding.base16().lowerCase().decode(
        "ffe0202020202020202020000000000000000000000000000000000000000000000000000000000000000000000000000000000"
            + "00000000020202020202020202020202020202020202020202020202020200000"));
    List<Object> row = (List<Object>) serde.deserialize(in);

    Assert.assertEquals(null, row.get(0));
    Assert.assertEquals(null, row.get(1));
    Assert.assertEquals(null, row.get(3));
    Assert.assertEquals(null, row.get(4));
    Assert.assertEquals(null, row.get(5));
    Assert.assertEquals(null, row.get(6));
    Assert.assertEquals(null, row.get(7));
    Assert.assertEquals(null, row.get(8));
    Assert.assertEquals(null, row.get(9));
    Assert.assertEquals(null, row.get(10));

    BytesWritable res = (BytesWritable) serde.serialize(row, serde.getObjectInspector());
    Assert.assertTrue(Arrays.equals(in.copyBytes(), res.copyBytes()));
  }
Test all the data types supported for Teradata Binary Format.
serde/src/test/org/apache/hadoop/hive/serde2/teradata/TestTeradataBinarySerdeGeneral.java