private static HashMap<String, Integer> createHashMapStringInteger(Object...vals) {
    assertTrue(vals.length % 2 == 0);
    HashMap<String, Integer> retval = new HashMap<String, Integer>();
    for (int idx = 0; idx < vals.length; idx += 2) {
      retval.put((String) vals[idx], (Integer) vals[idx+1]);
    }
    return retval;
  }
This test tests that our json deserialization is not too strict, as per HIVE-6166

i.e, if our schema is "s:struct<a:int,b:string>,k:int", and we pass in
data that looks like : {
                           "x" : "abc" ,
                           "t" : {
                               "a" : "1",
                               "b" : "2",
                               "c" : [
                                   { "x" : 2 , "y" : 3 } ,
                                   { "x" : 3 , "y" : 2 }
                               ]
                           } ,
                           "s" : {
                               "a" : 2 ,
                               "b" : "blah",
                               "c": "woo"
                           }
                       }

Then it should still work, and ignore the "x" and "t" field and "c" subfield of "s", and it
should read k as null.
hcatalog/core/src/test/java/org/apache/hive/hcatalog/data/TestJsonSerDe.java