@Test
public void testGetItemSelectorParameters() {

	Map<String, String[]> parameters =
		_itemSelectorImpl.getItemSelectorParameters(
			"itemSelectedEventName", _mediaItemSelectorCriterion,
			_flickrItemSelectorCriterion);
	Assert.assertEquals(
		"itemSelectedEventName",
		parameters.get(ItemSelectorImpl.PARAMETER_ITEM_SELECTED_EVENT_NAME)
			[0]);
	String mediaItemSelectorCriterionKey =
		ItemSelectorKeyUtil.getItemSelectorCriterionKey(
			MediaItemSelectorCriterion.class);
	String flickrItemSelectorCriterionKey =
		ItemSelectorKeyUtil.getItemSelectorCriterionKey(
			FlickrItemSelectorCriterion.class);
	Assert.assertEquals(
		mediaItemSelectorCriterionKey + StringPool.COMMA +
			flickrItemSelectorCriterionKey,
		parameters.get(ItemSelectorImpl.PARAMETER_CRITERIA)[0]);
	Assert.assertNull(parameters.get("0_desiredItemSelectorReturnTypes"));
	Assert.assertNotNull(parameters.get("0_json")[0]);
	Assert.assertNotNull(parameters.get("1_json")[0]);
	Assert.assertEquals(parameters.toString(), 4, parameters.size());
}