@Test
public void geneInNetworkClosestHitTwoNetworks() {

    GeneModelPhenotypeMatch model5 = geneModelMatch(5, 0.7, "MONDO:5");
    //in the interaction matrix above 1-2-3-4 are in one network and 5-6 are in another
    GeneModelPhenotypeMatch model2 = geneModelMatch(2, 0.62, "MONDO:2");
    GeneModelPhenotypeMatch model3 = geneModelMatch(3, 0.63, "MONDO:3");
    ArrayListMultimap<Integer, GeneModelPhenotypeMatch> bestGeneModels = ArrayListMultimap.create();
    bestGeneModels.put(model5.getEntrezGeneId(), model5);
    bestGeneModels.put(model2.getEntrezGeneId(), model2);
    bestGeneModels.put(model3.getEntrezGeneId(), model3);
    HiPhiveProteinInteractionScorer instance = new HiPhiveProteinInteractionScorer(dataMatrix, bestGeneModels, HIGH_QUALITY_PHENO_SCORE_CUT_OFF);
    int queryGeneId = 4;
    GeneMatch closestPhenoMatchInNetwork = instance.getClosestPhenoMatchInNetwork(queryGeneId);
    assertThat(closestPhenoMatchInNetwork.getQueryGeneId(), equalTo(queryGeneId));
    assertThat(closestPhenoMatchInNetwork.getMatchGeneId(), equalTo(model3.getEntrezGeneId()));
    assertThat(closestPhenoMatchInNetwork.getScore(), closeTo(0.563d, 0.001));
    assertThat(closestPhenoMatchInNetwork.getBestMatchModels(), equalTo(ImmutableList.of(model3)));
}