public void test_10() throws IOException {
		String vcfFileName = "tests/test.chr1.vcf";
		Random random = new Random(20130216);

		// Index file
		System.out.println("Indexing file '" + vcfFileName + "'");
		FileIndexChrPos idx = new FileIndexChrPos(vcfFileName);
		idx.setVerbose(verbose);
		idx.setDebug(debug);
		idx.open();
		idx.index();

		// Iterate over vcf file
		VcfFileIterator vcf = new VcfFileIterator(vcfFileName);
		for (VcfEntry ve : vcf) {
			if (random.nextInt(1000) < 20) {
				//System.out.println("\t" + ve);
				int chrPos = ve.getStart();

				long pos = idx.find("1", chrPos, false);
				LineAndPos lp = idx.getLine(pos);
				int chrPosLp = idx.pos(lp.line);
				Assert.assertEquals(chrPos, chrPosLp); // We expect to find the next coordinate in VCF file (zero-based)
			}
		}

	}