AvroFileReaderFactory<Person> genericReader = createFileReaderFactory(Avros.records(Person.class));
Iterator<Person> recordIterator = genericReader.read(FileSystem.getLocal(new Configuration()), new Path(
this.avroFile.getAbsolutePath()));
Person expectedPerson = new Person();
expectedPerson.age = 42;
expectedPerson.name = "John Doe";
List<CharSequence> siblingNames = Lists.newArrayList();
siblingNames.add("Jimmy");
siblingNames.add("Jane");
expectedPerson.siblingnames = siblingNames;
Person person = recordIterator.next();
assertEquals(expectedPerson, person);
assertFalse(recordIterator.hasNext());
}