public void testXContentColumnTypes() throws Exception {
SQLResponse r = new SQLResponse();
r.cols(new String[]{"col1", "col2", "col3"});
r.colTypes(new DataType[]{StringType.INSTANCE, new ArrayType(IntegerType.INSTANCE),
new SetType(new ArrayType(LongType.INSTANCE))});
r.includeTypes(true);
r.rows(new Object[][]{new Object[]{1, new Integer[]{42}, new HashSet<Long[]>(){{add(new Long[]{21L});}}}});
r.rowCount(1L);
System.out.println(json(r));
JSONAssert.assertEquals(
"{\"cols\":[\"col1\",\"col2\",\"col3\"],\"col_types\":[4,[100,9],[101,[100,10]]],\"rows\":[[1,[42],[[21]]]],\"rowcount\":1,\"duration\":-1}",