* Note that SAMFileReader (which is the non-caching reader) is 1-based
* and inclusive-end. AlignmentIntervalLoader is 0-based and exclusive end.
*/
public void tstQuery(String testFile, String sequence, int start, int end, boolean contained, int maxDepth) throws IOException {
ResourceLocator loc = new ResourceLocator(testFile);
AlignmentReader reader = AlignmentReaderFactory.getReader(loc);
CloseableIterator<Alignment> iter = reader.query(sequence, start, end, contained);
List<Alignment> expectedResult = new ArrayList<Alignment>();
while (iter.hasNext()) {