Serializer<GenericRecord> writerSerializer =
new AvroGenericRecordSerializer(schemaV1);
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"));