@SuppressWarnings("unchecked")
  private static void deserializeObject(DruidSerDe serDe,
                                        Object[] rowObject,
                                        DruidWritable druidWritable) throws SerDeException {
    // Deserialize
    List<Object> object = (List<Object>) serDe.deserialize(druidWritable);
    // Check result
    assertEquals(rowObject.length, object.size());
    for (int i = 0; i < rowObject.length; i++) {
      assertEquals(rowObject[i].getClass(), object.get(i).getClass());
      assertEquals(rowObject[i], object.get(i));
    }
  }
Basic tests for Druid SerDe. The examples are taken from Druid 0.9.1.1
documentation.
druid-handler/src/test/org/apache/hadoop/hive/druid/serde/TestDruidSerDe.java