GenericRecord record = createRecordV1(schemaV1, 1);
writerBytes = writerSerializer.serialize(record);
Serializer<GenericRecord> readerSerializer =
new AvroGenericRecordSerializer(schemaV1);
GenericRecord record1 = readerSerializer.deserialize(writerBytes);
assertEquals(record.get("id"), record1.get("id"));
assertEquals(record.get("age"), record1.get("age"));
assertEquals(record.get("fname"), record1.get("fname"));
assertEquals(record.get("lname"), record1.get("lname"));