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

    URL url = Paths.get("src/test/resources/test_empty.vcf.gz").toUri().toURL();
    Path alleleGzipFile = tempDir.resolve("test_empty.vcf.gz");
    AlleleResource testResource = new TabixAlleleResource("test", url, alleleGzipFile, line -> null);
    AlleleResourceDownloader.download(testResource);
    assertThat(alleleGzipFile.toFile().exists(), is(true));
    assertThat(tempDir.resolve("test_empty.vcf.gz.tbi").toFile().exists(), is(true));
}