SynonymsDisplayContext { public int getItemsTotal() { return _itemsTotal; }  List<DropdownItem> getActionDropdownMultipleItems(); CreationMenu getCreationMenu(); int getItemsTotal(); SearchContainer<SynonymSetDisplayContext> getSearchContainer(); boolean isDisabledManagementBar(); void setCreationMenu(CreationMenu creationMenu); void setDisabledManagementBar(boolean disabledManagementBar); void setDropdownItems(List<DropdownItem> dropdownItems); void setItemsTotal(int itemsTotal); void setSearchContainer(
		SearchContainer<SynonymSetDisplayContext> searchContainer);  }
@Test public void testGetItemsTotal() { mockSynonymSets("car,automobile", "biscuit,cookie"); SynonymsDisplayBuilder synonymsDisplayBuilder = new SynonymsDisplayBuilder( _documentToSynonymSetTranslator, _httpServletRequest, _language, _portal, _queries, _renderRequest, _renderResponse, _searchEngineAdapter, _searchEngineInformation, _sorts, _synonymSetIndexNameBuilder); SynonymsDisplayContext synonymsDisplayContext = synonymsDisplayBuilder.build(); Assert.assertEquals(2, synonymsDisplayContext.getItemsTotal()); }
@Test public void testIsDisabled() { mockSynonymSets("car,automobile", "biscuit,cookie"); SynonymsDisplayBuilder synonymsDisplayBuilder = new SynonymsDisplayBuilder( _documentToSynonymSetTranslator, _httpServletRequest, _language, _portal, _queries, _renderRequest, _renderResponse, _searchEngineAdapter, _searchEngineInformation, _sorts, _synonymSetIndexNameBuilder); SynonymsDisplayContext synonymsDisplayContext = synonymsDisplayBuilder.build(); Assert.assertEquals(2, synonymsDisplayContext.getItemsTotal()); }