tableInfo.add(columnInfo2);
tableInfo.add(columnInfo3);
//tableInfo.add(columnInfo4);
tableInfo.add(columnInfo5);
ObjectMapper objectMapper = new ObjectMapper();
JsonFactory jsonFactory = new JsonFactory();
StringWriter writer = new StringWriter();
JsonGenerator jsonGenerator = jsonFactory.createJsonGenerator(writer);
objectMapper.writeValue(jsonGenerator, tableInfo);
String jsonString = writer.toString();
when(context.getConfiguration().get(HIHOConf.COLUMN_INFO)).thenReturn(jsonString);
mapper.setup(context);
assertEquals(mapper.getTableInfo().toString(), tableInfo.toString());