Author: Olivier Sallou <osallou@debian.org>
        Matthias Klose <doko@debian.org>
Subject: disable network tests
Description: remove network related tests
 fixing bug 808593
Bug-Debian: https://bugs.debian.org/923539
Last-Updated: 2023-06-13
Forwarded: not-needed
--- a/src/test/java/htsjdk/samtools/seekablestream/SeekableBufferedStreamTest.java
+++ b/src/test/java/htsjdk/samtools/seekablestream/SeekableBufferedStreamTest.java
@@ -41,71 +41,6 @@
     private final String BAM_URL_STRING = "http://broadinstitute.github.io/picard/testdata/index_test.bam";
     private static File TestFile = new File("src/test/resources/htsjdk/samtools/seekablestream/megabyteZeros.dat");
 
-    /**
-     * Test reading across a buffer boundary (buffer size is 512000).   The test first reads a range of
-     * bytes using an unbuffered stream file stream,  then compares this to results from a buffered http stream.
-     *
-     * @throws IOException
-     */
-    @Test
-    public void testRandomRead() throws IOException {
-
-        int startPosition = 500000;
-        int length = 50000;
-
-        byte[] buffer1 = new byte[length];
-        SeekableStream unBufferedStream = new SeekableFileStream(BAM_FILE);
-        unBufferedStream.seek(startPosition);
-        int bytesRead = unBufferedStream.read(buffer1, 0, length);
-        assertEquals(length, bytesRead);
-
-        byte[] buffer2 = new byte[length];
-        SeekableStream bufferedStream = new SeekableBufferedStream(new SeekableHTTPStream(new URL(BAM_URL_STRING)));
-        bufferedStream.seek(startPosition);
-        bytesRead = bufferedStream.read(buffer2, 0, length);
-        assertEquals(length, bytesRead);
-
-        assertEquals(buffer1, buffer2);
-    }
-
-    @Test
-    public void testReadExactlyOneByteAtEndOfFile() throws IOException {
-        try (final SeekableStream stream = new SeekableHTTPStream(new URL(BAM_URL_STRING))) {
-            byte[] buff = new byte[1];
-            long length = stream.length();
-            stream.seek(length - 1);
-            Assert.assertFalse(stream.eof());
-            Assert.assertEquals(stream.read(buff), 1);
-            Assert.assertTrue(stream.eof());
-            Assert.assertEquals(stream.read(buff), -1);
-        }
-    }
-
-    /**
-     * Test an attempt to read past the end of the file.  The test file is 594,149 bytes in length.  The test
-     * attempts to read a 1000 byte block starting at position 594000.  A correct result would return 149 bytes.
-     *
-     * @throws IOException
-     */
-    @Test
-    public void testEOF() throws IOException {
-
-        int remainder = 149;
-        long fileLength = BAM_FILE.length();
-        long startPosition = fileLength - remainder;
-        int length = 1000;
-
-        byte[] buffer = new byte[length];
-        SeekableStream bufferedStream = new SeekableBufferedStream(new SeekableHTTPStream(new URL(BAM_URL_STRING)));
-        bufferedStream.seek(startPosition);
-        int bytesRead = bufferedStream.read(buffer, 0, length);
-        assertEquals(remainder, bytesRead);
-
-        // Subsequent reads should return -1
-        bytesRead = bufferedStream.read(buffer, 0, length);
-        assertEquals(-1, bytesRead);
-    }
-
     @Test
     public void testSkip() throws IOException {
         final int[] BUFFER_SIZES = new int[] {8, 96, 1024, 8 * 1024, 16 * 1024, 96 * 1024, 48 * 1024};
--- a/src/test/java/htsjdk/tribble/util/ftp/FTPClientTest.java
+++ b/src/test/java/htsjdk/tribble/util/ftp/FTPClientTest.java
@@ -23,221 +23,4 @@
     static int fileSize = 27;
     static byte[] expectedBytes = "abcdefghijklmnopqrstuvwxyz\n".getBytes();
     FTPClient client;
-
-    @BeforeMethod
-    public void setUp() throws IOException {
-        client = new FTPClient();
-        FTPReply reply = client.connect(host);
-        Assert.assertTrue(reply.isSuccess(), "connect");
-    }
-
-    @AfterMethod
-    public void tearDown() {
-        System.out.println("Disconnecting");
-        client.disconnect();
-    }
-
-    @Test
-    public void testLogin() throws Exception {}
-
-    @Test
-    public void testPasv() throws Exception {
-        try {
-            FTPReply reply = client.login("anonymous", "igv@broadinstitute.org");
-            Assert.assertTrue(reply.isSuccess(), "login");
-
-            reply = client.pasv();
-            Assert.assertTrue(reply.isSuccess(), "pasv");
-        } finally {
-            client.closeDataStream();
-        }
-    }
-
-    @Test
-    public void testSize() throws Exception {
-
-        FTPReply reply = client.login("anonymous", "igv@broadinstitute.org");
-        Assert.assertTrue(reply.isSuccess());
-
-        reply = client.binary();
-        Assert.assertTrue(reply.isSuccess(), "binary");
-
-        reply = client.size(file);
-        String val = reply.getReplyString();
-        int size = Integer.parseInt(val);
-        Assert.assertEquals(fileSize, size, "size");
-    }
-
-    @Test
-    public void testDownload() throws Exception {
-        try {
-            FTPReply reply = client.login("anonymous", "igv@broadinstitute.org");
-            Assert.assertTrue(reply.isSuccess(), "login");
-
-            reply = client.binary();
-            Assert.assertTrue(reply.isSuccess(), "binary");
-
-            reply = client.pasv();
-            Assert.assertTrue(reply.isSuccess(), "pasv");
-
-            reply = client.retr(file);
-            Assert.assertEquals(reply.getCode(), 150, "retr");
-
-            InputStream is = client.getDataStream();
-            int idx = 0;
-            int b;
-            while ((b = is.read()) >= 0) {
-                Assert.assertEquals(expectedBytes[idx], (byte) b, "reading from stream");
-                idx++;
-            }
-
-        } finally {
-            client.closeDataStream();
-            FTPReply reply = client.retr(file);
-            System.out.println(reply.getCode());
-            Assert.assertTrue(reply.isSuccess(), "close");
-        }
-    }
-
-    @Test
-    public void testRest() throws Exception {
-        try {
-            FTPReply reply = client.login("anonymous", "igv@broadinstitute.org");
-            Assert.assertTrue(reply.isSuccess(), "login");
-
-            reply = client.binary();
-            Assert.assertTrue(reply.isSuccess(), "binary");
-
-            reply = client.pasv();
-            Assert.assertTrue(reply.isSuccess(), "pasv");
-
-            final int restPosition = 5;
-            client.setRestPosition(restPosition);
-
-            reply = client.retr(file);
-            Assert.assertEquals(reply.getCode(), 150, "retr");
-
-            InputStream is = client.getDataStream();
-            int idx = restPosition;
-            int b;
-            while ((b = is.read()) >= 0) {
-                Assert.assertEquals(expectedBytes[idx], (byte) b, "reading from stream");
-                idx++;
-            }
-
-        } finally {
-            client.closeDataStream();
-            FTPReply reply = client.retr(file);
-            System.out.println(reply.getCode());
-            Assert.assertTrue(reply.isSuccess(), "close");
-        }
-    }
-
-    /**
-     * Test accessing a non-existent file
-     */
-    @Test
-    public void testNonExistentFile() throws Exception {
-
-        String host = "ftp.broadinstitute.org";
-        String file = "/pub/igv/TEST/fileDoesntExist.txt";
-        FTPClient client = new FTPClient();
-
-        FTPReply reply = client.connect(host);
-        Assert.assertTrue(reply.isSuccess(), "connect");
-
-        reply = client.login("anonymous", "igv@broadinstitute.org");
-        Assert.assertTrue(reply.isSuccess(), "login");
-
-        reply = client.binary();
-        Assert.assertTrue(reply.isSuccess(), "binary");
-
-        reply = client.executeCommand("size " + file);
-        Assert.assertEquals(550, reply.getCode(), "size");
-
-        client.disconnect();
-    }
-
-    /**
-     * Test accessing a non-existent server
-     */
-    @Test
-    public void testNonExistentServer() throws Exception {
-
-        String host = "ftp.noSuchServer.org";
-        String file = "/pub/igv/TEST/fileDoesntExist.txt";
-        FTPClient client = new FTPClient();
-
-        FTPReply reply = null;
-        try {
-            reply = client.connect(host);
-        } catch (UnknownHostException e) {
-            // This is expected
-        }
-
-        client.disconnect();
-    }
-
-    @Test
-    public void testMultiplePasv() throws Exception {
-
-        try {
-            FTPReply reply = client.login("anonymous", "igv@broadinstitute.org");
-            Assert.assertTrue(reply.isSuccess(), "login");
-
-            reply = client.pasv();
-            Assert.assertTrue(reply.isSuccess(), "pasv 1");
-            client.closeDataStream();
-
-            reply = client.pasv();
-            Assert.assertTrue(reply.isSuccess(), "pasv 2");
-            client.closeDataStream();
-        } finally {
-
-        }
-    }
-
-    @Test
-    public void testMultipleRest() throws Exception {
-        FTPReply reply = client.login("anonymous", "igv@broadinstitute.org");
-        Assert.assertTrue(reply.isSuccess(), "login");
-
-        reply = client.binary();
-        Assert.assertTrue(reply.isSuccess(), "binary");
-
-        restRetr(5, 10);
-        restRetr(2, 10);
-        restRetr(15, 10);
-    }
-
-    private void restRetr(int restPosition, int length) throws IOException {
-
-        try {
-
-            if (client.getDataStream() == null) {
-                FTPReply reply = client.pasv();
-                Assert.assertTrue(reply.isSuccess(), "pasv");
-            }
-
-            client.setRestPosition(restPosition);
-
-            FTPReply reply = client.retr(file);
-            // assertTrue(reply.getCode() == 150);
-
-            InputStream is = client.getDataStream();
-
-            byte[] buffer = new byte[length];
-            is.read(buffer);
-
-            for (int i = 0; i < length; i++) {
-                System.out.print((char) buffer[i]);
-                Assert.assertEquals(expectedBytes[i + restPosition], buffer[i], "reading from stream");
-            }
-            System.out.println();
-        } finally {
-            client.closeDataStream();
-            FTPReply reply = client.getReply(); // <== MUST READ THE REPLY
-            System.out.println(reply.getReplyString());
-        }
-    }
 }
--- a/src/test/java/htsjdk/tribble/readers/TabixReaderTest.java
+++ b/src/test/java/htsjdk/tribble/readers/TabixReaderTest.java
@@ -154,29 +154,6 @@
     }
 
     /**
-     * Test reading a tabix file over http
-     *
-     * @throws java.io.IOException
-     */
-    @Test
-    public void testRemoteQuery() throws IOException {
-        String tabixFile = TestUtil.BASE_URL_FOR_HTTP_TESTS + "igvdata/tabix/trioDup.vcf.gz";
-
-        try (TabixReader tabixReader = new TabixReader(tabixFile)) {
-            TabixIteratorLineReader lineReader =
-                    new TabixIteratorLineReader(tabixReader.query(tabixReader.chr2tid("4"), 320, 330));
-
-            int nRecords = 0;
-            String nextLine;
-            while ((nextLine = lineReader.readLine()) != null) {
-                Assert.assertTrue(nextLine.startsWith("4"));
-                nRecords++;
-            }
-            Assert.assertTrue(nRecords > 0);
-        }
-    }
-
-    /**
      * Test TabixReader.readLine
      *
      * @throws java.io.IOException
--- a/src/test/java/htsjdk/samtools/cram/ref/EnaRefServiceTest.java
+++ /dev/null
@@ -1,19 +0,0 @@
-package htsjdk.samtools.cram.ref;
-
-import htsjdk.HtsjdkTest;
-import org.testng.Assert;
-import org.testng.annotations.DataProvider;
-import org.testng.annotations.Test;
-
-public class EnaRefServiceTest extends HtsjdkTest {
-
-    @DataProvider(name = "testEnaRefServiceData")
-    public Object[][] testEnaRefServiceData() {
-        return new Object[][] {{"57151e6196306db5d9f33133572a5482"}, {"0000088cbcebe818eb431d58c908c698"}};
-    }
-
-    @Test(dataProvider = "testEnaRefServiceData", groups = "ena")
-    public void testEnaRefServiceData(final String md5) throws GaveUpException {
-        Assert.assertNotNull(new EnaRefService().getSequence(md5));
-    }
-}
--- a/src/test/java/htsjdk/samtools/BAMRemoteFileTest.java
+++ b/src/test/java/htsjdk/samtools/BAMRemoteFileTest.java
@@ -44,290 +44,6 @@
     private final File BAM_INDEX_FILE =
             new File("src/test/resources/htsjdk/samtools/BAMFileIndexTest/index_test.bam.bai");
     private final File BAM_FILE = new File("src/test/resources/htsjdk/samtools/BAMFileIndexTest/index_test.bam");
-    private final String BAM_URL_STRING = TestUtil.BASE_URL_FOR_HTTP_TESTS + "index_test.bam";
-    private final URL bamURL;
 
     private final boolean mVerbose = false;
-
-    public BAMRemoteFileTest() throws Exception {
-        bamURL = new URL(BAM_URL_STRING);
-    }
-
-    @Test
-    public void testRemoteLocal() throws Exception {
-        runLocalRemoteTest(bamURL, BAM_FILE, "chrM", 10400, 10600, false);
-    }
-
-    @Test
-    public void testSpecificQueries() throws Exception {
-        assertEquals(runQueryTest(bamURL, "chrM", 10400, 10600, true), 1);
-        assertEquals(runQueryTest(bamURL, "chrM", 10400, 10600, false), 2);
-    }
-
-    @Test
-    public void testRandomQueries() throws Exception {
-        runRandomTest(bamURL, 20, new Random(TestUtil.RANDOM_SEED));
-    }
-
-    @Test
-    public void testWholeChromosomes() {
-        checkChromosome("chrM", 23);
-        checkChromosome("chr1", 885);
-        checkChromosome("chr2", 837);
-        /***
-         * checkChromosome("chr3", 683);
-         * checkChromosome("chr4", 633);
-         * checkChromosome("chr5", 611);
-         * checkChromosome("chr6", 585);
-         * checkChromosome("chr7", 521);
-         * checkChromosome("chr8", 507);
-         * checkChromosome("chr9", 388);
-         * checkChromosome("chr10", 477);
-         * checkChromosome("chr11", 467);
-         * checkChromosome("chr12", 459);
-         * checkChromosome("chr13", 327);
-         * checkChromosome("chr14", 310);
-         * checkChromosome("chr15", 280);
-         * checkChromosome("chr16", 278);
-         * checkChromosome("chr17", 269);
-         * checkChromosome("chr18", 265);
-         * checkChromosome("chr19", 178);
-         * checkChromosome("chr20", 228);
-         * checkChromosome("chr21", 123);
-         * checkChromosome("chr22", 121);
-         * checkChromosome("chrX", 237);
-         * checkChromosome("chrY", 29);
-         ***/
-    }
-
-    private void checkChromosome(final String name, final int expectedCount) {
-        int count = runQueryTest(bamURL, name, 0, 0, true);
-        assertEquals(count, expectedCount);
-        count = runQueryTest(bamURL, name, 0, 0, false);
-        assertEquals(count, expectedCount);
-    }
-
-    private void runRandomTest(final URL bamFile, final int count, final Random generator) throws IOException {
-        final int maxCoordinate = 10000000;
-        final List<String> referenceNames = getReferenceNames(bamFile);
-        for (int i = 0; i < count; i++) {
-            final String refName = referenceNames.get(generator.nextInt(referenceNames.size()));
-            final int coord1 = generator.nextInt(maxCoordinate + 1);
-            final int coord2 = generator.nextInt(maxCoordinate + 1);
-            final int startPos = Math.min(coord1, coord2);
-            final int endPos = Math.max(coord1, coord2);
-            System.out.println("Testing query " + refName + ":" + startPos + "-" + endPos + " ...");
-            try {
-                runQueryTest(bamFile, refName, startPos, endPos, true);
-                runQueryTest(bamFile, refName, startPos, endPos, false);
-            } catch (Throwable exc) {
-                String message = "Query test failed: " + refName + ":" + startPos + "-" + endPos;
-                message += ": " + exc.getMessage();
-                throw new RuntimeException(message, exc);
-            }
-        }
-    }
-
-    private List<String> getReferenceNames(final URL bamFile) throws IOException {
-
-        final SamReader reader = SamReaderFactory.makeDefault().open(SamInputResource.of(bamFile.openStream()));
-
-        final List<String> result = new ArrayList<String>();
-        final List<SAMSequenceRecord> seqRecords =
-                reader.getFileHeader().getSequenceDictionary().getSequences();
-        for (final SAMSequenceRecord seqRecord : seqRecords) {
-            if (seqRecord.getSequenceName() != null) {
-                result.add(seqRecord.getSequenceName());
-            }
-        }
-        reader.close();
-        return result;
-    }
-
-    private void runLocalRemoteTest(
-            final URL bamURL,
-            final File bamFile,
-            final String sequence,
-            final int startPos,
-            final int endPos,
-            final boolean contained) {
-        verbose("Testing query " + sequence + ":" + startPos + "-" + endPos + " ...");
-        final SamReader reader1 = SamReaderFactory.makeDefault()
-                .disable(SamReaderFactory.Option.EAGERLY_DECODE)
-                .open(SamInputResource.of(bamFile).index(BAM_INDEX_FILE));
-        final SamReader reader2 = SamReaderFactory.makeDefault()
-                .disable(SamReaderFactory.Option.EAGERLY_DECODE)
-                .open(SamInputResource.of(bamURL).index(BAM_INDEX_FILE));
-        final Iterator<SAMRecord> iter1 = reader1.query(sequence, startPos, endPos, contained);
-        final Iterator<SAMRecord> iter2 = reader2.query(sequence, startPos, endPos, contained);
-
-        final List<SAMRecord> records1 = new ArrayList<SAMRecord>();
-        final List<SAMRecord> records2 = new ArrayList<SAMRecord>();
-
-        while (iter1.hasNext()) {
-            records1.add(iter1.next());
-        }
-        while (iter2.hasNext()) {
-            records2.add(iter2.next());
-        }
-
-        assertTrue(records1.size() > 0);
-        assertEquals(records1.size(), records2.size());
-        for (int i = 0; i < records1.size(); i++) {
-            assertEquals(records1.get(i).getSAMString(), records2.get(i).getSAMString());
-        }
-    }
-
-    private int runQueryTest(
-            final URL bamURL, final String sequence, final int startPos, final int endPos, final boolean contained) {
-        verbose("Testing query " + sequence + ":" + startPos + "-" + endPos + " ...");
-        final SamReader reader1 = SamReaderFactory.makeDefault()
-                .disable(SamReaderFactory.Option.EAGERLY_DECODE)
-                .open(SamInputResource.of(bamURL).index(BAM_INDEX_FILE));
-        final SamReader reader2 = SamReaderFactory.makeDefault()
-                .disable(SamReaderFactory.Option.EAGERLY_DECODE)
-                .open(SamInputResource.of(bamURL).index(BAM_INDEX_FILE));
-        final Iterator<SAMRecord> iter1 = reader1.query(sequence, startPos, endPos, contained);
-        final Iterator<SAMRecord> iter2 = reader2.iterator();
-        // Compare ordered iterators.
-        // Confirm that iter1 is a subset of iter2 that properly filters.
-        SAMRecord record1 = null;
-        SAMRecord record2 = null;
-        int count1 = 0;
-        int count2 = 0;
-        int beforeCount = 0;
-        int afterCount = 0;
-        while (true) {
-            if (record1 == null && iter1.hasNext()) {
-                record1 = iter1.next();
-                count1++;
-            }
-            if (record2 == null && iter2.hasNext()) {
-                record2 = iter2.next();
-                count2++;
-            }
-            if (record1 == null && record2 == null) {
-                break;
-            }
-            if (record1 == null) {
-                checkPassesFilter(false, record2, sequence, startPos, endPos, contained);
-                record2 = null;
-                afterCount++;
-                continue;
-            }
-            assertNotNull(record2);
-            final int ordering = compareCoordinates(record1, record2);
-            if (ordering > 0) {
-                checkPassesFilter(false, record2, sequence, startPos, endPos, contained);
-                record2 = null;
-                beforeCount++;
-                continue;
-            }
-            assertTrue(ordering == 0);
-            checkPassesFilter(true, record1, sequence, startPos, endPos, contained);
-            checkPassesFilter(true, record2, sequence, startPos, endPos, contained);
-            assertEquals(record1.getReadName(), record2.getReadName());
-            assertEquals(record1.getReadString(), record2.getReadString());
-            record1 = null;
-            record2 = null;
-        }
-        CloserUtil.close(reader1);
-        CloserUtil.close(reader2);
-        verbose("Checked " + count1 + " records against " + count2 + " records.");
-        verbose("Found " + (count2 - beforeCount - afterCount) + " records matching.");
-        verbose("Found " + beforeCount + " records before.");
-        verbose("Found " + afterCount + " records after.");
-        return count1;
-    }
-
-    private void checkPassesFilter(
-            final boolean expected,
-            final SAMRecord record,
-            final String sequence,
-            final int startPos,
-            final int endPos,
-            final boolean contained) {
-        final boolean passes = passesFilter(record, sequence, startPos, endPos, contained);
-        if (passes != expected) {
-            System.out.println("Error: Record erroneously " + (passes ? "passed" : "failed") + " filter.");
-            System.out.println(" Record: " + record.getSAMString());
-            System.out.println(" Filter: " + sequence + ":" + startPos
-                    + "-" + endPos + " ("
-                    + (contained ? "contained" : "overlapping") + ")");
-            assertEquals(passes, expected);
-        }
-    }
-
-    private boolean passesFilter(
-            final SAMRecord record,
-            final String sequence,
-            final int startPos,
-            final int endPos,
-            final boolean contained) {
-        if (record == null) {
-            return false;
-        }
-        if (!safeEquals(record.getReferenceName(), sequence)) {
-            return false;
-        }
-        final int alignmentStart = record.getAlignmentStart();
-        int alignmentEnd = record.getAlignmentEnd();
-        if (alignmentStart <= 0) {
-            assertTrue(record.getReadUnmappedFlag());
-            return false;
-        }
-        if (alignmentEnd <= 0) {
-            // For indexing-only records, treat as single base alignment.
-            assertTrue(record.getReadUnmappedFlag());
-            alignmentEnd = alignmentStart;
-        }
-        if (contained) {
-            if (startPos != 0 && alignmentStart < startPos) {
-                return false;
-            }
-            if (endPos != 0 && alignmentEnd > endPos) {
-                return false;
-            }
-        } else {
-            if (startPos != 0 && alignmentEnd < startPos) {
-                return false;
-            }
-            if (endPos != 0 && alignmentStart > endPos) {
-                return false;
-            }
-        }
-        return true;
-    }
-
-    private int compareCoordinates(final SAMRecord record1, final SAMRecord record2) {
-        final int seqIndex1 = record1.getReferenceIndex();
-        final int seqIndex2 = record2.getReferenceIndex();
-        if (seqIndex1 == -1) {
-            return ((seqIndex2 == -1) ? 0 : -1);
-        } else if (seqIndex2 == -1) {
-            return 1;
-        }
-        int result = seqIndex1 - seqIndex2;
-        if (result != 0) {
-            return result;
-        }
-        result = record1.getAlignmentStart() - record2.getAlignmentStart();
-        return result;
-    }
-
-    private boolean safeEquals(final Object o1, final Object o2) {
-        if (o1 == o2) {
-            return true;
-        } else if (o1 == null || o2 == null) {
-            return false;
-        } else {
-            return o1.equals(o2);
-        }
-    }
-
-    private void verbose(final String text) {
-        if (mVerbose) {
-            System.out.println("# " + text);
-        }
-    }
 }
--- a/src/test/java/htsjdk/tribble/util/ftp/FTPUtilsTest.java
+++ b/src/test/java/htsjdk/tribble/util/ftp/FTPUtilsTest.java
@@ -14,16 +14,4 @@
  */
 public class FTPUtilsTest extends HtsjdkTest {
 
-    @Test(groups = "ftp")
-    public void testResourceAvailable() throws Exception {
-
-        URL goodUrl = new URL("ftp://ftp.broadinstitute.org/pub/igv/TEST/test.txt");
-        assertTrue(FTPUtils.resourceAvailable(goodUrl));
-
-        URL nonExistentURL = new URL("ftp://ftp.broadinstitute.org/pub/igv/TEST/doesntExist");
-        assertFalse(FTPUtils.resourceAvailable(nonExistentURL));
-
-        URL nonExistentServer = new URL("ftp://noSuchServer/pub/igv/TEST/doesntExist");
-        assertFalse(FTPUtils.resourceAvailable(nonExistentServer));
-    }
 }
--- a/src/test/java/htsjdk/samtools/seekablestream/SeekableFTPStreamTest.java
+++ b/src/test/java/htsjdk/samtools/seekablestream/SeekableFTPStreamTest.java
@@ -37,60 +37,4 @@
  */
 @Test(groups = "ftp")
 public class SeekableFTPStreamTest extends HtsjdkTest {
-
-    static String urlString = "ftp://ftp.broadinstitute.org/pub/igv/TEST/test.txt";
-    static long fileSize = 27;
-    static byte[] expectedBytes = "abcdefghijklmnopqrstuvwxyz\n".getBytes();
-    SeekableFTPStream stream;
-
-    @BeforeMethod()
-    public void setUp() throws IOException {
-        stream = new SeekableFTPStream(new URL(urlString));
-    }
-
-    @AfterMethod()
-    public void tearDown() throws IOException {
-        stream.close();
-    }
-
-    @Test
-    public void testLength() throws Exception {
-        long length = stream.length();
-        Assert.assertEquals(fileSize, length);
-    }
-
-    /**
-     * Test a buffered read.  The buffer is much large than the file size,  assert that the desired # of bytes are read
-     *
-     * @throws Exception
-     */
-    @Test
-    public void testBufferedRead() throws Exception {
-
-        byte[] buffer = new byte[64000];
-        int nRead = stream.read(buffer);
-        Assert.assertEquals(fileSize, nRead);
-    }
-
-    /**
-     * Test requesting a range that extends beyond the end of the file
-     */
-    @Test
-    public void testRange() throws Exception {
-        stream.seek(20);
-        byte[] buffer = new byte[64000];
-        int nRead = stream.read(buffer);
-        Assert.assertEquals(fileSize - 20, nRead);
-    }
-
-    /**
-     * Test requesting a range that begins beyond the end of the file
-     */
-    @Test
-    public void testBadRange() throws Exception {
-        stream.seek(30);
-        byte[] buffer = new byte[64000];
-        int nRead = stream.read(buffer);
-        Assert.assertEquals(-1, nRead);
-    }
 }
--- a/src/test/java/htsjdk/tribble/util/ParsingUtilsTest.java
+++ b/src/test/java/htsjdk/tribble/util/ParsingUtilsTest.java
@@ -154,65 +154,7 @@
         }
     }
 
-    @Test(groups = "ftp")
-    public void testFTPDoesExist() throws IOException {
-        testExists(AVAILABLE_FTP_URL, true);
-    }
-
-    @Test(groups = "ftp")
-    public void testFTPNotExist() throws IOException {
-        testExists(UNAVAILABLE_FTP_URL, false);
-    }
-
-    @Test
-    public void testHTTPDoesExist() throws IOException {
-        testExists(AVAILABLE_HTTP_URL, true);
-    }
-
-    @Test
-    public void testHTTPNotExist() throws IOException {
-        testExists(UNAVAILABLE_HTTP_URL, false);
-    }
-
     private static void testExists(String path, boolean expectExists) throws IOException {
         Assert.assertEquals(ParsingUtils.resourceExists(path), expectExists);
     }
-
-    @Test
-    public void testFileOpenInputStream() throws IOException {
-        File tempFile = File.createTempFile(getClass().getSimpleName(), ".tmp");
-        tempFile.deleteOnExit();
-        try (Writer writer = new BufferedWriter(new OutputStreamWriter(IOUtil.openFileForWriting(tempFile)))) {
-            writer.write("hello");
-        }
-        testStream(tempFile.getAbsolutePath());
-        testStream(tempFile.toURI().toString());
-    }
-
-    @Test
-    public void testInMemoryNioFileOpenInputStream() throws IOException {
-        try (FileSystem fs = Jimfs.newFileSystem(Configuration.unix())) {
-            Path file = fs.getPath("/file");
-            Files.write(file, "hello".getBytes(StandardCharsets.UTF_8));
-            testStream(file.toUri().toString());
-        }
-    }
-
-    @Test(groups = "ftp")
-    public void testFTPOpenInputStream() throws IOException {
-        testStream(AVAILABLE_FTP_URL);
-    }
-
-    @Test
-    public void testHTTPOpenInputStream() throws IOException {
-        testStream(AVAILABLE_HTTP_URL);
-    }
-
-    private static void testStream(String path) throws IOException {
-        try (InputStream is = ParsingUtils.openInputStream(path)) {
-            Assert.assertNotNull(is, "InputStream is null for " + path);
-            int b = is.read();
-            Assert.assertNotSame(b, -1);
-        }
-    }
 }
--- a/src/test/java/htsjdk/tribble/AbstractFeatureReaderTest.java
+++ b/src/test/java/htsjdk/tribble/AbstractFeatureReaderTest.java
@@ -51,55 +51,6 @@
     // wrapper which skips the first byte of a file and leaves the rest unchanged
     private static final Function<SeekableByteChannel, SeekableByteChannel> WRAPPER = SkippingByteChannel::new;
 
-    /**
-     * Asserts readability and correctness of VCF over HTTP.  The VCF is indexed and requires and index.
-     */
-    @Test
-    public void testVcfOverHTTP() throws IOException {
-        final VCFCodec codec = new VCFCodec();
-        final AbstractFeatureReader<VariantContext, LineIterator> featureReaderHttp =
-                AbstractFeatureReader.getFeatureReader(HTTP_INDEXED_VCF_PATH, codec, true); // Require an index to
-        final AbstractFeatureReader<VariantContext, LineIterator> featureReaderLocal =
-                AbstractFeatureReader.getFeatureReader(LOCAL_MIRROR_HTTP_INDEXED_VCF_PATH, codec, false);
-        final CloseableTribbleIterator<VariantContext> localIterator = featureReaderLocal.iterator();
-        for (final Feature feat : featureReaderHttp.iterator()) {
-            assertEquals(feat.toString(), localIterator.next().toString());
-        }
-        assertFalse(localIterator.hasNext());
-    }
-
-    @Test(groups = "ftp")
-    public void testLoadBEDFTP() throws Exception {
-        final String path = "ftp://ftp.broadinstitute.org/distribution/igv/TEST/cpgIslands%20with%20spaces.hg18.bed";
-        final BEDCodec codec = new BEDCodec();
-        final AbstractFeatureReader<BEDFeature, LineIterator> bfs =
-                AbstractFeatureReader.getFeatureReader(path, codec, false);
-        for (final Feature feat : bfs.iterator()) {
-            assertNotNull(feat);
-        }
-    }
-
-    @Test(dataProvider = "blockCompressedExtensionExtensionStrings", dataProviderClass = IOUtilTest.class)
-    public void testBlockCompressionExtensionString(final String testString, final boolean expected) {
-        Assert.assertEquals(AbstractFeatureReader.hasBlockCompressedExtension(testString), expected);
-    }
-
-    @Test(dataProvider = "blockCompressedExtensionExtensionStrings", dataProviderClass = IOUtilTest.class)
-    public void testBlockCompressionExtensionFile(final String testString, final boolean expected) {
-        Assert.assertEquals(AbstractFeatureReader.hasBlockCompressedExtension(new File(testString)), expected);
-    }
-
-    @Test(dataProvider = "blockCompressedExtensionExtensionURIStrings", dataProviderClass = IOUtilTest.class)
-    public void testBlockCompressionExtension(final String testURIString, final boolean expected) {
-        URI testURI = URI.create(testURIString);
-        Assert.assertEquals(AbstractFeatureReader.hasBlockCompressedExtension(testURI), expected);
-    }
-
-    @Test(dataProvider = "blockCompressedExtensionExtensionURIStrings", dataProviderClass = IOUtilTest.class)
-    public void testBlockCompressionExtensionStringVersion(final String testURIString, final boolean expected) {
-        Assert.assertEquals(AbstractFeatureReader.hasBlockCompressedExtension(testURIString), expected);
-    }
-
     @Test(groups = "optimistic_vcf_4_4")
     public void testVCF4_4Optimistic() {
         final AbstractFeatureReader<VariantContext, ?> fr = AbstractFeatureReader.getFeatureReader(
--- a/src/test/java/htsjdk/variant/PrintVariantsExampleTest.java
+++ b/src/test/java/htsjdk/variant/PrintVariantsExampleTest.java
@@ -46,10 +46,12 @@
                 "src/test/resources/htsjdk/variant/ILLUMINA.wex.broad_phase2_baseline.20111114.both.exome.genotypes.1000.vcf");
         final String[] args = {f1.getAbsolutePath(), tempFile.getAbsolutePath()};
         Assert.assertEquals(tempFile.length(), 0);
+        /*
         PrintVariantsExample.main(args);
         Assert.assertNotEquals(tempFile.length(), 0);
 
         assertFilesEqualSkipHeaders(tempFile, f1);
+        */
     }
 
     private void assertFilesEqualSkipHeaders(File tempFile, File f1) throws FileNotFoundException {
--- a/src/test/java/htsjdk/samtools/util/HttpUtilsTest.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package htsjdk.samtools.util;
-
-import htsjdk.HtsjdkTest;
-import java.io.IOException;
-import java.net.URL;
-import org.testng.Assert;
-import org.testng.annotations.DataProvider;
-import org.testng.annotations.Test;
-
-@Test(groups = "http")
-public class HttpUtilsTest extends HtsjdkTest {
-    @DataProvider(name = "existing_urls")
-    public Object[][] testExistingURLsData() {
-        return new Object[][] {
-            {"http://broadinstitute.github.io/picard/testdata/index_test.bam"},
-            {"http://ftp.1000genomes.ebi.ac.uk/vol1/ftp/README_using_1000genomes_cram.md"}
-        };
-    }
-
-    @Test(dataProvider = "existing_urls")
-    public void testGetHeaderField(final String url) throws IOException {
-        final String field = HttpUtils.getHeaderField(new URL(url), "Content-Length");
-        Assert.assertNotNull(field);
-        final long length = Long.parseLong(field);
-        Assert.assertTrue(length > 0L);
-    }
-
-    @Test(dataProvider = "existing_urls")
-    public void testGetETag(final String url) throws IOException {
-        final String field = HttpUtils.getETag(new URL(url));
-        Assert.assertNotNull(field);
-    }
-}
--- a/src/test/java/htsjdk/samtools/HtsgetBAMFileReaderTest.java
+++ b/src/test/java/htsjdk/samtools/HtsgetBAMFileReaderTest.java
@@ -26,264 +26,5 @@
     private static final int noChrMReadsContained = 9;
     private static final int noChrMReadsOverlapped = 10;
 
-    private static HtsgetBAMFileReader bamFileReaderHtsgetGET;
     private static HtsgetBAMFileReader bamFileReaderHtsgetPOST;
-    private static HtsgetBAMFileReader bamFileReaderHtsgetAsync;
-
-    @BeforeMethod
-    public void init() throws IOException {
-        bamFileReaderHtsgetGET = new HtsgetBAMFileReader(
-                htsgetBAM, true, ValidationStringency.DEFAULT_STRINGENCY, DefaultSAMRecordFactory.getInstance(), false);
-        bamFileReaderHtsgetGET.setUsingPOST(false);
-
-        bamFileReaderHtsgetAsync = new HtsgetBAMFileReader(
-                htsgetBAM, true, ValidationStringency.DEFAULT_STRINGENCY, DefaultSAMRecordFactory.getInstance(), true);
-        bamFileReaderHtsgetAsync.setUsingPOST(false);
-
-        bamFileReaderHtsgetPOST = new HtsgetBAMFileReader(
-                htsgetBAM, true, ValidationStringency.DEFAULT_STRINGENCY, DefaultSAMRecordFactory.getInstance(), false);
-
-        Assert.assertTrue(bamFileReaderHtsgetPOST.isUsingPOST());
-        Assert.assertFalse(bamFileReaderHtsgetGET.isUsingPOST());
-        Assert.assertFalse(bamFileReaderHtsgetAsync.isUsingPOST());
-    }
-
-    @AfterMethod
-    public void tearDown() {
-        bamFileReaderHtsgetGET.close();
-        bamFileReaderHtsgetPOST.close();
-        bamFileReaderHtsgetAsync.close();
-    }
-
-    @DataProvider(name = "readerProvider")
-    public Object[][] readerProvider() {
-        return new Object[][] {
-            {bamFileReaderHtsgetGET}, {bamFileReaderHtsgetAsync}, {bamFileReaderHtsgetPOST},
-        };
-    }
-
-    @Test(dataProvider = "readerProvider")
-    public static void testGetHeader(final HtsgetBAMFileReader htsgetReader) {
-        final SAMFileHeader expectedHeader =
-                SamReaderFactory.makeDefault().open(bamFile).getFileHeader();
-        final SAMFileHeader actualHeader = htsgetReader.getFileHeader();
-        Assert.assertEquals(actualHeader, expectedHeader);
-    }
-
-    @Test(dataProvider = "readerProvider")
-    public static void testQueryMapped(final HtsgetBAMFileReader htsgetReader) throws IOException {
-        try (final SamReader samReader = SamReaderFactory.makeDefault().open(bamFile);
-                final SAMRecordIterator samRecordIterator = samReader.iterator()) {
-            Assert.assertEquals(samReader.getFileHeader().getSortOrder(), SAMFileHeader.SortOrder.coordinate);
-
-            int counter = 0;
-            while (samRecordIterator.hasNext()) {
-                final SAMRecord samRecord = samRecordIterator.next();
-                if (samRecord.getReferenceIndex() == SAMRecord.NO_ALIGNMENT_REFERENCE_INDEX) {
-                    break;
-                }
-                if (counter++ % 100 > 1) { // test only 1st and 2nd in every 100 to speed the test up:
-                    continue;
-                }
-                final String sam1 = samRecord.getSAMString();
-
-                final CloseableIterator<SAMRecord> iterator =
-                        htsgetReader.queryAlignmentStart(samRecord.getReferenceName(), samRecord.getAlignmentStart());
-
-                Assert.assertTrue(iterator.hasNext(), counter + ": " + sam1);
-                final SAMRecord bamRecord = iterator.next();
-                final String sam2 = bamRecord.getSAMString();
-                Assert.assertEquals(samRecord.getReferenceName(), bamRecord.getReferenceName(), sam1 + sam2);
-
-                // default 'overlap' is true, so test records intersect the query:
-                Assert.assertTrue(bamRecord.overlaps(samRecord), sam1 + sam2);
-
-                iterator.close();
-            }
-            Assert.assertEquals(counter, nofMappedReads);
-        }
-    }
-
-    @Test(dataProvider = "readerProvider")
-    public static void testQueryUnmapped(final HtsgetBAMFileReader htsgetReader) throws IOException {
-        int counter = 0;
-        try (final SamReader fileReader = SamReaderFactory.makeDefault().open(bamFile);
-                final CloseableIterator<SAMRecord> csiIterator = fileReader.queryUnmapped();
-                final CloseableIterator<SAMRecord> htsgetIterator = htsgetReader.queryUnmapped()) {
-            Assert.assertTrue(htsgetIterator.hasNext());
-            while (htsgetIterator.hasNext()) {
-                Assert.assertTrue(csiIterator.hasNext());
-
-                final SAMRecord r1 = htsgetIterator.next();
-                final SAMRecord r2 = csiIterator.next();
-                Assert.assertEquals(r1.getReadName(), r2.getReadName());
-                Assert.assertEquals(r1.getBaseQualityString(), r2.getBaseQualityString());
-
-                counter++;
-            }
-            Assert.assertFalse(csiIterator.hasNext());
-            Assert.assertEquals(counter, nofUnmappedReads);
-        }
-    }
-
-    @Test(dataProvider = "readerProvider")
-    public static void testQueryInterval(final HtsgetBAMFileReader htsgetReader) throws IOException {
-        final QueryInterval[] query =
-                new QueryInterval[] {new QueryInterval(0, 1519, 1520), new QueryInterval(1, 470535, 470536)};
-        try (final SamReader fileReader = SamReaderFactory.makeDefault().open(bamFile);
-                final CloseableIterator<SAMRecord> csiIterator = fileReader.query(query, false);
-                final CloseableIterator<SAMRecord> htsgetIterator = htsgetReader.query(query, false)) {
-
-            Assert.assertTrue(htsgetIterator.hasNext());
-            Assert.assertTrue(csiIterator.hasNext());
-            SAMRecord r1 = htsgetIterator.next();
-            SAMRecord r2 = csiIterator.next();
-            Assert.assertEquals(r1.getReadName(), "3968040");
-            Assert.assertEquals(r2.getReadName(), "3968040");
-
-            r1 = htsgetIterator.next();
-            r2 = csiIterator.next();
-            Assert.assertEquals(r1.getReadName(), "140419");
-            Assert.assertEquals(r2.getReadName(), "140419");
-        }
-    }
-
-    @Test(dataProvider = "readerProvider")
-    public static void testQueryContained(final HtsgetBAMFileReader htsgetReader) throws IOException {
-        int counter = 0;
-        try (final SamReader fileReader = SamReaderFactory.makeDefault().open(bamFile);
-                final CloseableIterator<SAMRecord> csiIterator = fileReader.query("chrM", 1500, -1, true);
-                final CloseableIterator<SAMRecord> htsgetIterator = htsgetReader.query("chrM", 1500, -1, true)) {
-            Assert.assertTrue(htsgetIterator.hasNext());
-            while (htsgetIterator.hasNext()) {
-                Assert.assertTrue(csiIterator.hasNext());
-
-                final SAMRecord r1 = htsgetIterator.next();
-                final SAMRecord r2 = csiIterator.next();
-                Assert.assertEquals(r1.getReadName(), r2.getReadName());
-                Assert.assertEquals(r1.getBaseQualityString(), r2.getBaseQualityString());
-
-                counter++;
-            }
-            Assert.assertFalse(csiIterator.hasNext());
-            Assert.assertEquals(counter, noChrMReads);
-        }
-
-        counter = 0;
-        try (final SamReader fileReader = SamReaderFactory.makeDefault().open(bamFile);
-                final CloseableIterator<SAMRecord> csiIterator = fileReader.query("chrM", 1500, 10450, true);
-                final CloseableIterator<SAMRecord> htsgetIterator = htsgetReader.query("chrM", 1500, 10450, true)) {
-            Assert.assertTrue(htsgetIterator.hasNext());
-            while (htsgetIterator.hasNext()) {
-                Assert.assertTrue(csiIterator.hasNext());
-
-                final SAMRecord r1 = htsgetIterator.next();
-                final SAMRecord r2 = csiIterator.next();
-                Assert.assertEquals(r1.getReadName(), r2.getReadName());
-                Assert.assertEquals(r1.getBaseQualityString(), r2.getBaseQualityString());
-
-                counter++;
-            }
-            Assert.assertFalse(csiIterator.hasNext());
-            Assert.assertEquals(counter, noChrMReadsContained);
-        }
-    }
-
-    @Test(dataProvider = "readerProvider")
-    public static void testQueryOverlapped(final HtsgetBAMFileReader htsgetReader) throws IOException {
-        int counter = 0;
-        try (final SamReader fileReader = SamReaderFactory.makeDefault().open(bamFile);
-                final CloseableIterator<SAMRecord> csiIterator = fileReader.query("chrM", 1500, 10450, false);
-                final CloseableIterator<SAMRecord> htsgetIterator = htsgetReader.query("chrM", 1500, 10450, false)) {
-            Assert.assertTrue(htsgetIterator.hasNext());
-            while (htsgetIterator.hasNext()) {
-                Assert.assertTrue(csiIterator.hasNext());
-
-                final SAMRecord r1 = htsgetIterator.next();
-                final SAMRecord r2 = csiIterator.next();
-                Assert.assertEquals(r1.getReadName(), r2.getReadName());
-                Assert.assertEquals(r1.getBaseQualityString(), r2.getBaseQualityString());
-
-                counter++;
-            }
-            Assert.assertFalse(csiIterator.hasNext());
-            Assert.assertEquals(counter, noChrMReadsOverlapped);
-        }
-    }
-
-    @Test(dataProvider = "readerProvider")
-    public static void testRemovesDuplicates(final HtsgetBAMFileReader htsgetReader) throws IOException {
-        // TODO: temporary workaround as reference server does not properly merge regions and remove duplicates yet
-        // See https://github.com/ga4gh/htsget-refserver/issues/27
-        if (htsgetReader.isUsingPOST()) {
-            return;
-        }
-
-        final QueryInterval[] intervals = new QueryInterval[] {
-            new QueryInterval(0, 1519, 1688), new QueryInterval(0, 1690, 2985), new QueryInterval(0, 2987, 3034),
-        };
-        int counter = 0;
-        try (final SamReader fileReader = SamReaderFactory.makeDefault().open(bamFile);
-                final CloseableIterator<SAMRecord> csiIterator = fileReader.query(intervals, false);
-                final CloseableIterator<SAMRecord> htsgetIterator = htsgetReader.query(intervals, false)) {
-            Assert.assertTrue(htsgetIterator.hasNext());
-            while (htsgetIterator.hasNext()) {
-                Assert.assertTrue(csiIterator.hasNext());
-
-                final SAMRecord r1 = htsgetIterator.next();
-                final SAMRecord r2 = csiIterator.next();
-                Assert.assertEquals(r1.getReadName(), r2.getReadName());
-                Assert.assertEquals(r1.getBaseQualityString(), r2.getBaseQualityString());
-
-                counter++;
-            }
-            Assert.assertFalse(csiIterator.hasNext());
-            Assert.assertEquals(counter, 3);
-        }
-    }
-
-    @Test(dataProvider = "readerProvider")
-    public static void testQueryAlignmentStartNone(final HtsgetBAMFileReader htsgetReader) throws IOException {
-        // the first read starts from 1519
-        try (final SamReader fileReader = SamReaderFactory.makeDefault().open(bamFile);
-                final CloseableIterator<SAMRecord> csiIterator = fileReader.queryAlignmentStart("chrM", 1500);
-                final CloseableIterator<SAMRecord> htsgetIterator = htsgetReader.queryAlignmentStart("chrM", 1500)) {
-            Assert.assertFalse(htsgetIterator.hasNext());
-            Assert.assertFalse(csiIterator.hasNext());
-        }
-    }
-
-    @Test(dataProvider = "readerProvider")
-    public static void testQueryAlignmentStartOne(final HtsgetBAMFileReader htsgetReader) throws IOException {
-        // one read on chrM starts from 9060
-        try (final SamReader fileReader = SamReaderFactory.makeDefault().open(bamFile);
-                final CloseableIterator<SAMRecord> csiIterator = fileReader.queryAlignmentStart("chrM", 9060);
-                final CloseableIterator<SAMRecord> htsgetIterator = htsgetReader.queryAlignmentStart("chrM", 9060)) {
-            Assert.assertTrue(htsgetIterator.hasNext());
-            Assert.assertTrue(csiIterator.hasNext());
-
-            final SAMRecord r1 = htsgetIterator.next();
-            final SAMRecord r2 = csiIterator.next();
-            Assert.assertEquals(r1.getReadName(), r2.getReadName());
-            Assert.assertEquals(r1.getBaseQualityString(), r2.getBaseQualityString());
-
-            Assert.assertFalse(htsgetIterator.hasNext());
-            Assert.assertFalse(csiIterator.hasNext());
-        }
-    }
-
-    @Test
-    public static void testEnableFileSource() {
-        final SamReader reader =
-                SamReaderFactory.makeDefault().open(new SamInputResource(new FileInputResource(bamFile)));
-        bamFileReaderHtsgetGET.enableFileSource(reader, true);
-        try (final CloseableIterator<SAMRecord> htsgetIterator = bamFileReaderHtsgetGET.getIterator()) {
-            htsgetIterator.forEachRemaining(
-                    record -> Assert.assertEquals(record.getFileSource().getReader(), reader));
-        }
-        bamFileReaderHtsgetGET.enableFileSource(reader, false);
-        try (final CloseableIterator<SAMRecord> htsgetIterator = bamFileReaderHtsgetGET.getIterator()) {
-            htsgetIterator.forEachRemaining(record -> Assert.assertNull(record.getFileSource()));
-        }
-    }
 }
--- a/src/test/java/htsjdk/beta/codecs/reads/htsget/HtsgetBAM/HtsgetBAMCodecTest.java
+++ b/src/test/java/htsjdk/beta/codecs/reads/htsget/HtsgetBAM/HtsgetBAMCodecTest.java
@@ -38,7 +38,7 @@
         HtsDefaultRegistry.getReadsResolver().getReadsEncoder(htsgetBAM, new ReadsEncoderOptions());
     }
 
-    @Test
+    @Test(enabled=false)
     public void testGetHeader() {
         try (final ReadsDecoder htsgetDecoder =
                 HtsDefaultRegistry.getReadsResolver().getReadsDecoder(htsgetBAM, new ReadsDecoderOptions())) {
@@ -49,7 +49,7 @@
         }
     }
 
-    @Test
+    @Test(enabled=false)
     public void testIteration() {
         try (final ReadsDecoder htsgetDecoder =
                 HtsDefaultRegistry.getReadsResolver().getReadsDecoder(htsgetBAM, new ReadsDecoderOptions())) {
@@ -65,7 +65,7 @@
         }
     }
 
-    @Test
+    @Test(enabled=false)
     public void testQueryInterval() throws IOException {
         try (final ReadsDecoder htsgetDecoder =
                 HtsDefaultRegistry.getReadsResolver().getReadsDecoder(htsgetBAM, new ReadsDecoderOptions())) {
@@ -95,7 +95,7 @@
         }
     }
 
-    @Test
+    @Test(enabled=false)
     public void testQueryUnmapped() {
         try (final ReadsDecoder htsgetDecoder =
                 HtsDefaultRegistry.getReadsResolver().getReadsDecoder(htsgetBAM, new ReadsDecoderOptions())) {
@@ -112,7 +112,7 @@
         }
     }
 
-    @Test(expectedExceptions = HtsjdkUnsupportedOperationException.class)
+    @Test(expectedExceptions = HtsjdkUnsupportedOperationException.class, enabled=false)
     public void testRejectQueryMate() {
         SAMRecord samRec = null;
         try (final ReadsDecoder htsgetDecoder =
