### Question:
ElementManagerImpl implements ElementManager { @Override public SearchResult search(SessionContext context, SearchCriteria searchCriteria) { Response<SearchResult> response = getSearchIndexAdaptor(context).search(context, searchCriteria); ValidationUtil.validateResponse(response, logger, ErrorCode.ZU_SEARCH); return response.getValue(); }  @Override Collection<CoreElementInfo> list(SessionContext context, ElementContext elementContext,
                                          Id elementId); @Override CoreElementInfo getInfo(SessionContext context, ElementContext elementContext,
                                 Id elementId); @Override CoreElement get(SessionContext context, ElementContext elementContext,
                         Id elementId); @Override CoreElementConflict getConflict(SessionContext context, ElementContext elementContext,
                                         Id elementId); @Override CoreElement save(SessionContext context, ElementContext elementContext,
                          CoreElement element, String message); @Override CoreMergeResult resolveConflict(SessionContext context, ElementContext elementContext,
                                         CoreElement element, Resolution resolution); @Override SearchResult search(SessionContext context, SearchCriteria searchCriteria); @Override void saveMergeChange(SessionContext context, Space space, ElementContext elementContext,
                              Collection<CoreElement> elements);  }### Answer:
@Test public void testSearch() throws Exception { SessionContext context = TestUtils.createSessionContext(USER, "test"); SearchCriteria searchCriteria = new SearchCriteria() { }; SearchResult retrievedSearchResult = new SearchResult() { }; Response<SearchResult> searchResultResponse = new Response<>(retrievedSearchResult); doReturn(searchResultResponse).when(searchIndexAdaptorMock).search(context, searchCriteria); SearchResult searchResult = elementManager.search(context, searchCriteria); Assert.assertEquals(searchResult, retrievedSearchResult); }