@Test
public void testGenericRecord() throws Exception {
ClassTag<GenericData.Record> tag = getClassTag(GenericData.Record.class);
KryoPool kryo = getKryo(tag, AvroSerializer$.MODULE$.GenericRecordSerializer(schema,tag));
byte[] userBytes = kryo.toBytesWithClass(user);
GenericData.Record userResult = (GenericData.Record) kryo.fromBytes(userBytes);
assertEquals(userResult.get("name").toString(),"Jeff");
assertEquals(userResult.get("ID"),1);
assertEquals(user.toString(), userResult.toString());
}