/**
* The correct size of a {@link ChartFormatRecord} is 20 bytes (not including header).
*/
public void testLoad() {
RecordInputStream in = TestcaseRecordInputStream.create(data);
ChartFormatRecord record = new ChartFormatRecord(in);
if (in.remaining() == 2) {
throw new AssertionFailedError("Identified bug 44693d");
}
assertEquals(0, in.remaining());
assertEquals(24, record.getRecordSize());
byte[] data2 = record.serialize();
assertArrayEquals(data, data2);
}