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);