String path = TestUtils.DATA_DIR + "gff/gffWithFasta.gff";
final ResourceLocator locator = new ResourceLocator(path);
TribbleFeatureSource tribbleFeatureSource = TribbleFeatureSource.getFeatureSource(locator, genome);
FeatureSource source = new GFFFeatureSource(tribbleFeatureSource);
int featureCount = 0;
Iterator<Feature> iter = source.getFeatures("chr7", 0, Integer.MAX_VALUE);
while (iter.hasNext()) {
BasicFeature bf = (BasicFeature) iter.next();
featureCount++;
}
assertEquals(2, featureCount);