for (int i = 0; i < cols.length; ++i)
if (cols[i] == null)
cols[i] = HDict.EMPTY;
// read from zinc
HGrid grid = new HZincReader(str).readGrid();
verifyGridEq(grid, meta, cols, rows);
// write grid and verify we can parse that too
String writeStr = HZincWriter.gridToString(grid);
HGrid writeGrid = new HZincReader(writeStr).readGrid();
verifyGridEq(writeGrid, meta, cols, rows);
}