final int end = 182776742;
final String chr = "1";
Iterator<VCFVariant> iter = baseReader.query(chr, start, end);
while (iter.hasNext()) {
VCFVariant var = iter.next();
assertEquals(chr, var.getChr());
assertTrue(var.getEnd() >= start && var.getStart() <= end);
baseReaderLoci.add(getLocusString(var));
}
assertTrue(baseReaderLoci.size() > 0);
// Now use CachingFeatureReader and insure results are the same
Set<String> cacheReaderLoci = new HashSet();
iter = cacheReader.query(chr, start, end);
while (iter.hasNext()) {
VCFVariant var = iter.next();
assertEquals(chr, var.getChr());
assertTrue(var.getEnd() >= start && var.getStart() <= end);
cacheReaderLoci.add(getLocusString(var));
}
assertEquals(baseReaderLoci.size(), cacheReaderLoci.size());
for (String locus : cacheReaderLoci) {