ArchiveFileReader { public Stream<String> lines() { return getArchiveFileObjects() .stream() .map(toBufferedReader()) .flatMap(BufferedReader::lines); } ArchiveFileReader(AlleleArchive alleleArchive); Stream<String> lines();  }
@Test void readEmptyLines() { ArchiveFileReader instance = new SimpleArchiveFileReader(new TabixAlleleArchive(Paths.get("src/test/resources/test_empty.vcf.gz"))); long lineCount = instance.lines().count(); assertThat(lineCount, equalTo(0L)); }
@Test void readLines() { ArchiveFileReader instance = new SimpleArchiveFileReader(new TabixAlleleArchive(Paths.get("src/test/resources/test_first_ten_dbsnp.vcf.gz"))); long lineCount = instance.lines().count(); assertThat(lineCount, equalTo(67L)); }