@Test
public void testPhenoGridFromEmptyHiPhiveResults() {

    hiPhiveResults = Collections.emptyList();
    PhenoGrid output = instance.makePhenoGridFromHiPhiveResults(phenoGridId, hiPhiveResults);
    assertThat(output, notNullValue());
    PhenoGridQueryTerms queryTerms = output.getPhenoGridQueryTerms();
    assertThat(queryTerms, notNullValue());
    assertThat(queryTerms.getId(), equalTo(phenoGridId));
    assertThat(queryTerms.getPhenotypeIds().isEmpty(), is(true));
    assertThat(output.getPhenoGridMatchGroups().isEmpty(), is(true));
}