@Test
void testReturnsCurrentHpoIdsWhenGivenObsoleteIds() {

    String obsoleteThinEarHelixId = "HP:0000000";
    String currentThinEarHelixId = "HP:0009905";
    Mockito.when(mockHpoDao.getIdToPhenotypeTerms())
            .thenReturn(ImmutableMap.of(
            "HP:0009902", cleftHelix,
                    currentThinEarHelixId, thinEarHelix,
                    obsoleteThinEarHelixId, thinEarHelix
    ));
    instance = new OntologyServiceImpl(mockHpoDao, mockMpoDao, mockZpoDao);
    ImmutableList<String> expected = ImmutableList.of("HP:0009902", currentThinEarHelixId);
    assertThat(instance.getCurrentHpoIds(ImmutableList.of("HP:0009902", obsoleteThinEarHelixId)), equalTo(expected));
    assertThat(instance.getCurrentHpoIds(ImmutableList.of("HP:0009902", currentThinEarHelixId, obsoleteThinEarHelixId)), equalTo(expected));
}