Assert.assertEquals(Integer.valueOf(100), deserializedTypeD.getVal());
Assert.assertEquals(new TypeA(1, 1), deserializedTypeD.getTypeA());
}
private FastBlobDeserializationRecord createDeserializationRecord(FastBlobSchema schema, FastBlobSerializationRecord rec) {
ByteDataBuffer originalRecord = new ByteDataBuffer();
rec.writeDataTo(originalRecord);
FastBlobDeserializationRecord deserializationRec = new FastBlobDeserializationRecord(schema, originalRecord.getUnderlyingArray());
deserializationRec.position(0);
return deserializationRec;
}