FolderSearchFacetDisplayContext implements Serializable { public List<FolderSearchFacetTermDisplayContext> getFolderSearchFacetTermDisplayContexts() { return _folderSearchFacetTermDisplayContexts; }  long getDisplayStyleGroupId(); FolderFacetPortletInstanceConfiguration getFolderFacetPortletInstanceConfiguration(); List<FolderSearchFacetTermDisplayContext> getFolderSearchFacetTermDisplayContexts(); String getPaginationStartParameterName(); String getParameterName(); String getParameterValue(); List<String> getParameterValues(); boolean isNothingSelected(); boolean isRenderNothing(); void setDisplayStyleGroupId(long displayStyleGroupId); void setFolderFacetPortletInstanceConfiguration(
		FolderFacetPortletInstanceConfiguration
			folderFacetPortletInstanceConfiguration); void setFolderSearchFacetTermDisplayContexts(
		List<FolderSearchFacetTermDisplayContext>
			folderSearchFacetTermDisplayContexts); void setNothingSelected(boolean nothingSelected); void setPaginationStartParameterName(
		String paginationStartParameterName); void setParameterName(String parameterName); void setParameterValue(String parameterValue); void setParameterValues(List<String> parameterValues); void setRenderNothing(boolean renderNothing);  }
@Test public void testViewPermissionGrantedForSearchResultButDeniedForParentFolder() throws Exception { List<TermCollector> termCollectors = addFoldersAndCreateTermCollectors( "zeroFolderId", null, "null", "", " ", "assert", "volatile", "alpha"); setUpMultipleTermCollectors(termCollectors); FolderSearchFacetDisplayContext folderSearchFacetDisplayContext = createDisplayContext(null); List<FolderSearchFacetTermDisplayContext> folderSearchFacetTermDisplayContexts = folderSearchFacetDisplayContext. getFolderSearchFacetTermDisplayContexts(); String nameFrequencyString = buildNameFrequencyString( folderSearchFacetTermDisplayContexts); Assert.assertEquals( folderSearchFacetTermDisplayContexts.toString(), "assert:6|volatile:7|alpha:8", nameFrequencyString); Assert.assertEquals( termCollectors.toString(), 36, getTotalTermCollectorFrequencyCount(termCollectors)); Assert.assertEquals( folderSearchFacetTermDisplayContexts.toString(), 21, getTotalFolderSearchFacetTermDisplayContextFrequencyCount( folderSearchFacetTermDisplayContexts)); }