assertEquals("md5 for result differed from input",expected,actual);
}
private X readOneXFromAvro(Schema schema, ByteArrayOutputStream bout)
throws IOException {
SeekableByteArrayInput input = new SeekableByteArrayInput(bout.toByteArray());
ReflectDatumReader<X> datumReader = new ReflectDatumReader<X>(schema);
FileReader<X> reader = DataFileReader.openReader(input, datumReader);
Iterator<X> it = reader.iterator();
assertTrue("missing first record",it.hasNext());
X record = it.next();