@Test
public void basicTestReadBinary() throws Exception {
ResultSet rs = DBManagerTest.getAllFromSQLTable("sql/unigene.db", "unigene");
SQLInputStream is = new SQLInputStream(rs, false, 1, 3);
FeatureCodec featCodec = new ExampleBinaryCodec();
PositionalBufferedStream pbs = new PositionalBufferedStream(is);
int count = 0;
while (!rs.isAfterLast()) {
Feature feat = featCodec.decode(pbs);
checkFeatureIntegrity(feat, "chr2");
count++;
}
assertEquals(72, count);