@Test
public void testGetQueryTermIds() {

    Set queryTermIds = new LinkedHashSet();
    for (PhenotypeMatch phenotypeMatch : phenotypeMatches) {
        PhenotypeTerm queryPhenotype = phenotypeMatch.getQueryPhenotype();
        queryTermIds.add(queryPhenotype.getId());
    }
    assertThat(instance.getQueryTermIds(), equalTo(queryTermIds));
}