RowData rowData = new RowData(new byte[initialBufferSize]);
// initialBufferSize has room for varchar of size 4, (1 byte of the 5 is for length).
// initialBufferSize is 24:
assertEquals(24, initialBufferSize);
// Doubling it leaves room for 28 chars. Try something a little bigger than that.
rowData.createRow(rowDef, new Object[]{"abcdefghijklmnopqrstuvwxyz0123"}, true);
assertEquals(initialBufferSize * 4, rowData.getBytes().length);
}
}