String genId = "NC_001802";
String genomePath = "http://igv.broadinstitute.org/genomes/" + genId + ".genome";
String outDirPath = TestUtils.TMP_OUTPUT_DIR;
File outDirFile = new File(outDirPath);
File outGenomeFile = new File(outDirPath, genId + ".genome");
RunnableResult result = GenomeManager.getInstance().downloadWholeGenome(genomePath, outDirFile, null);
assertTrue("Download of genome failed", result.isSuccess());
assertTrue(outGenomeFile.exists());
File fastaFile = new File(TestUtils.TMP_OUTPUT_DIR, genId + ".fna");
assertTrue("fasta file not found: " + fastaFile.getAbsolutePath(), fastaFile.exists());