@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);
}