@Test
public void testGetGeneScoreForMode() {

    assertThat(instance.getGeneScores().isEmpty(), is(true));
    ModeOfInheritance modeOfInheritanceAD = ModeOfInheritance.AUTOSOMAL_DOMINANT;
    GeneScore geneScoreAD = GeneScore.builder()
            .combinedScore(1f)
            .geneIdentifier(instance.getGeneIdentifier())
            .modeOfInheritance(modeOfInheritanceAD)
            .build();
    instance.addGeneScore(geneScoreAD);
    assertThat(instance.getGeneScoreForMode(modeOfInheritanceAD), equalTo(geneScoreAD));
    assertThat(instance.getGeneScores(), equalTo(ImmutableList.of(geneScoreAD)));
    ModeOfInheritance modeOfInheritanceAR = ModeOfInheritance.AUTOSOMAL_RECESSIVE;
    GeneScore geneScoreAR = GeneScore.builder()
            .combinedScore(1f)
            .geneIdentifier(instance.getGeneIdentifier())
            .modeOfInheritance(modeOfInheritanceAR)
            .build();
    instance.addGeneScore(geneScoreAR);
    assertThat(instance.getGeneScores(), equalTo(ImmutableList.of(geneScoreAD, geneScoreAR)));
}