@Test
public void testGetGeneScores() {

    //
    Gene fgfr2Gene = TestFactory.newGeneFGFR2();
    VariantEvaluation top = VariantEvaluation.builder(10, 23456, "G", "T").build();
    GeneScore first = GeneScore.builder()
            .geneIdentifier(fgfr2Gene.getGeneIdentifier())
            .modeOfInheritance(ModeOfInheritance.AUTOSOMAL_DOMINANT)
            .combinedScore(1f)
            .contributingVariants(ImmutableList.of(top))
            .build();
    VariantEvaluation bottom = VariantEvaluation.builder(10, 23456, "A", "T").build();
    GeneScore third = GeneScore.builder()
            .geneIdentifier(fgfr2Gene.getGeneIdentifier())
            .modeOfInheritance(ModeOfInheritance.AUTOSOMAL_RECESSIVE)
            .combinedScore(0.50f)
            .contributingVariants(ImmutableList.of(bottom))
            .build();
    fgfr2Gene.addGeneScore(first);
    fgfr2Gene.addGeneScore(third);
    Gene rbm8aGene = TestFactory.newGeneRBM8A();
    VariantEvaluation middle = VariantEvaluation.builder(7, 456889, "C", "A").build();
    GeneScore second = GeneScore.builder()
            .geneIdentifier(rbm8aGene.getGeneIdentifier())
            .modeOfInheritance(ModeOfInheritance.AUTOSOMAL_DOMINANT)
            .combinedScore(0.75f)
            .contributingVariants(ImmutableList.of(middle))
            .build();
    rbm8aGene.addGeneScore(second);
    //no gene score for SHH
    Gene shhGene = TestFactory.newGeneSHH();
    List<Gene> genes = ImmutableList.of(fgfr2Gene, rbm8aGene, shhGene);
    AnalysisResults instance = AnalysisResults.builder()
            .genes(genes)
            .build();
    List<GeneScore> expected = ImmutableList.of(first, second, third);
    assertThat(instance.getGeneScores(), equalTo(expected));
}