@Test
public void testStreamFile() throws Exception {

    try (BufferedReader reader = new BufferedReader(new FileReader(createFile(VCF)))) {
        stream(reader, new VcfStreamAdapter() {
            @Override
            public void header(final VcfHeader header) {
                validateHeader(header);
            }
            @Override
            public void sample(final VcfSample sample) {
                validateSample(sample);
            }
            @Override
            public void record(final VcfRecord record) {
                validateRecord(record);
            }
        });
    }
}