@Test
public void testPrioritiseWithUnMappedQueryPhenotype() {

    List<String> hpoIds = getHpoIds();
    //This phenotype (HP:0000707) is not represented in the HP-HP mappings as it is a very low scoring self-hit.
    //Consequently it increases the overall average score of the hits.
    hpoIds.add("HP:0000707");
    HiPhivePriority instance = new HiPhivePriority(HiPhiveOptions.builder()
            .runParams("human,mouse,fish")
            .build(), DataMatrix.empty(), priorityService);
    List<Gene> genes = getGenes();
    List<HiPhivePriorityResult> results = instance.prioritise(hpoIds, genes)
            .sorted(Comparator.naturalOrder())
            .collect(toList());
    assertThat(results.size(), equalTo(genes.size()));
    Map<String, List<Double>> expectedScores = new LinkedHashMap<>();
    expectedScores.put("FGFR2", Lists.newArrayList(0.9442318091865164, 0.8394768488788327, 0.0, 0.0, 0.0));
    expectedScores.put("ROR2", Lists.newArrayList(0.9091215195222582, 0.73554842149647, 0.0, 0.0, 0.0));
    expectedScores.put("FREM2", Lists.newArrayList(0.6248281688059083016639761, 0.6436054831824984390209465, 0.0, 0.0, 0.0));
    expectedScores.put("ZNF738", Lists.newArrayList(0.0, 0.0, 0.0, 0.0, 0.0));
    results.forEach(checkScores(expectedScores));
}