HgncParser { public Stream<GeneIdentifier> parseGeneIdentifiers() { return parseGeneIdentifiers(hgncTxt); } HgncParser(Path hgncCompleteSetTxtPath); Stream<GeneIdentifier> parseGeneIdentifiers();  }
@Test public void testParseGeneIdentifiers() { HgncParser hgncParser = new HgncParser(Paths.get("src/test/resources/data/hgnc_complete_set.txt")); List<GeneIdentifier> geneIdentifiers = hgncParser.parseGeneIdentifiers().collect(toList()); assertThat(geneIdentifiers.size(), equalTo(41054)); GeneIdentifier fgfr2Identifier = geneIdentifiers.stream() .filter(geneIdentifier -> geneIdentifier.getGeneSymbol().equals("FGFR2")) .findFirst() .get(); System.out.println(fgfr2Identifier); GeneIdentifier expectedFgfr2Identifier = GeneIdentifier.builder() .geneId("2263") .geneSymbol("FGFR2") .hgncId("HGNC:3689") .hgncSymbol("fibroblast growth factor receptor 2") .ensemblId("ENSG00000066468") .entrezId("2263") .ucscId("uc057wle.1") .build(); assertThat(fgfr2Identifier, equalTo(expectedFgfr2Identifier)); GeneIdentifier withdrawnIdentifier = geneIdentifiers.stream() .filter(geneIdentifier -> geneIdentifier.getHgncId().equals("HGNC:1")) .findFirst() .get(); System.out.println(withdrawnIdentifier); System.out.println(); }