@@ -0,0 +1,1018 @@
+package org.seqdoop.hadoop_bam.util;%0A%0Aimport java.io.IOException;%0A%0Aimport com.google.common.io.Resources;%0A%0Aimport htsjdk.samtools.seekablestream.ByteArraySeekableStream;%0Aimport htsjdk.samtools.seekablestream.SeekableStream;%0A%0Aimport org.junit.Test;%0A%0Aimport static org.junit.Assert.assertNotNull;%0A%0Apublic class TestVCFHeaderReader %7B%0A%0A  @Test%0A  public void testReadHeaderFromVCF() throws IOException %7B%0A    assertNotNull(VCFHeaderReader.readHeaderFrom(seekableStream(%22test.vcf%22)));%0A  %7D%0A%0A  @Test%0A  public void testReadHeaderFromGzippedVCF() throws IOException %7B%0A    assertNotNull(VCFHeaderReader.readHeaderFrom(seekableStream(%22test.vcf.gz%22)));%0A  %7D%0A%0A  @Test%0A  public void testReadHeaderFromBGZFVCF() throws IOException %7B%0A    assertNotNull(VCFHeaderReader.readHeaderFrom(seekableStream(%22test.vcf.bgzf.gz%22)));%0A  %7D%0A%0A  private SeekableStream seekableStream(final String resource) throws IOException %7B%0A    return new ByteArraySeekableStream(Resources.toByteArray(ClassLoader.getSystemClassLoader().getResource(resource)));%0A  %7D%0A%7D%0A

Add unit test for VCFHeaderReader, fails on gzipped and BGZF VCF formats