)
);
writeFileMetaData(md , baos);
FileMetaData md2 = readFileMetaData(in(baos));
FileMetaData md3 = new FileMetaData();
readFileMetaData(in(baos), new DefaultFileMetaDataConsumer(md3));
FileMetaData md4 = new FileMetaData();
readFileMetaData(in(baos), new DefaultFileMetaDataConsumer(md4), true);
FileMetaData md5 = readFileMetaData(in(baos), true);
FileMetaData md6 = readFileMetaData(in(baos), false);
assertEquals(md, md2);
assertEquals(md, md3);
assertNull(md4.getRow_groups());