ItemSelectorImpl implements ItemSelector { @Override public String getItemSelectedEventName(String itemSelectorURL) { Matcher matcher = _itemSelectorURLPattern.matcher(itemSelectorURL); if (matcher.find()) { return matcher.group(2); } String namespace = _portal.getPortletNamespace( ItemSelectorPortletKeys.ITEM_SELECTOR); return _http.getParameter( itemSelectorURL, namespace.concat(PARAMETER_ITEM_SELECTED_EVENT_NAME), false); }  @Override String getItemSelectedEventName(String itemSelectorURL); @Override List<ItemSelectorCriterion> getItemSelectorCriteria(
		Map<String, String[]> parameters); @Override List<ItemSelectorCriterion> getItemSelectorCriteria(
		String itemSelectorURL); @Override ItemSelectorRendering getItemSelectorRendering(
		RequestBackedPortletURLFactory requestBackedPortletURLFactory,
		Map<String, String[]> parameters, ThemeDisplay themeDisplay); @Override PortletURL getItemSelectorURL(
		RequestBackedPortletURLFactory requestBackedPortletURLFactory,
		Group group, long refererGroupId, String itemSelectedEventName,
		ItemSelectorCriterion... itemSelectorCriteria); @Override PortletURL getItemSelectorURL(
		RequestBackedPortletURLFactory requestBackedPortletURLFactory,
		String itemSelectedEventName,
		ItemSelectorCriterion... itemSelectorCriteria); static final String JSON; static final String PARAMETER_CRITERIA; static final String PARAMETER_ITEM_SELECTED_EVENT_NAME; static final String PARAMETER_SELECTED_TAB; }
@Test public void testGetItemSelectedEventName() { String itemSelectorURL = getItemSelectorURL( "testItemSelectedEventName", _mediaItemSelectorCriterion, _flickrItemSelectorCriterion); setUpItemSelectionCriterionHandlers(); Assert.assertEquals( "testItemSelectedEventName", _itemSelectorImpl.getItemSelectedEventName(itemSelectorURL)); }