@Test
@ExtendWith(TempDirectory.class)
void downloadNonExistentFileThrowsException(@TempDir Path tempDir) throws Exception {

    URL url = Paths.get("src/test/resources/no_file_here.vcf.gz").toUri().toURL();
    Path alleleGzipFile = tempDir.resolve("no_file_here.vcf.gz");
    AlleleResource testResource = new TabixAlleleResource("test", url, alleleGzipFile, line -> null);
    assertThrows(ResourceDownloadException.class, () -> AlleleResourceDownloader.download(testResource));
}