GroupSelectorDisplayContext { public String getGroupItemSelectorLabel(String groupType) { Optional<GroupItemSelectorProvider> optional = GroupItemSelectorTrackerUtil.getGroupItemSelectorProviderOptional( groupType); return optional.map( groupItemSelectorProvider -> groupItemSelectorProvider.getLabel( _liferayPortletRequest.getLocale()) ).orElse( StringPool.BLANK ); } GroupSelectorDisplayContext(
		LiferayPortletRequest liferayPortletRequest); protected  GroupSelectorDisplayContext(
		String groupType, LiferayPortletRequest liferayPortletRequest); String getGroupItemSelectorIcon(); String getGroupItemSelectorLabel(String groupType); PortletURL getGroupItemSelectorURL(String groupType); Set<String> getGroupTypes(); SearchContainer<Group> getSearchContainer(); String getViewGroupURL(Group group); boolean isGroupTypeActive(String groupType);  }
@Test public void testGetGroupItemSelectorLabel() { GroupSelectorDisplayContext groupSelectorDisplayContext = new GroupSelectorDisplayContext(new MockLiferayResourceRequest()); Assert.assertEquals( "label", groupSelectorDisplayContext.getGroupItemSelectorLabel("test")); }