### Question:
GlossaryService extends GlossaryViewOMAS { public GlossaryViewEntityDetailResponse getTermHomeGlossary(String userId, String serverName, String termGUID){ return getRelatedEntitiesResponse(userId, serverName, termGUID, TERM_TYPE_NAME, TERM_ANCHOR_RELATIONSHIP_NAME,0, 0, "getTermHomeGlossary"); } GlossaryService(); GlossaryViewEntityDetailResponse getGlossary(String userId, String serverName, String glossaryGUID); GlossaryViewEntityDetailResponse getAllGlossaries(String userId, String serverName, Integer from, Integer size); GlossaryViewEntityDetailResponse getTermHomeGlossary(String userId, String serverName, String termGUID); GlossaryViewEntityDetailResponse getCategoryHomeGlossary(String userId, String serverName, String categoryGUID); GlossaryViewEntityDetailResponse getExternalGlossaryLinks(String userId, String serverName, String glossaryGUID,
                                                                     Integer from, Integer size);  }### Answer:
@Test public void getTermHomeGlossary() throws Exception{ when(repositoryHandler.getEntitiesForRelationshipType(eq(USER_ID), eq(terms.get(0).getGUID()), eq(TERM_TYPE_NAME), eq(TERM_ANCHOR_RELATIONSHIP_GUID), eq(TERM_ANCHOR_RELATIONSHIP_NAME), anyInt(), anyInt(), eq("getTermHomeGlossary"))).thenReturn(Collections.singletonList(glossaries.get(0))); GlossaryViewEntityDetailResponse response = underTest.getTermHomeGlossary(USER_ID, SERVER_NAME, terms.get(0).getGUID()); assertEquals(1, response.getResult().size()); assertGlossaryProperties(glossaries.get(0), (Glossary)response.getResult().get(0)); assertTrue(isEffective.test(response.getResult().get(0))); }