@Test public void testLoadOnDiskIndex() { final File originalVCF = new File(privateTestDir + "vcf4.1.example.vcf"); final File tempVCFWithCorrectIndex = createTempVCFFileAndIndex(originalVCF, false); final File tempVCFIndexFile = Tribble.indexFile(tempVCFWithCorrectIndex); final Index index = builder.loadFromDisk(tempVCFWithCorrectIndex, tempVCFIndexFile); Assert.assertNotNull(index); Assert.assertTrue(tempVCFIndexFile.exists()); final Index inMemoryIndex = builder.createIndexInMemory(tempVCFWithCorrectIndex, new VCFCodec()); Assert.assertTrue(index.equalsIgnoreProperties(inMemoryIndex)); }