@Test
public void testGetItemSelectorRendering() {

	setUpItemSelectionCriterionHandlers();
	ItemSelectorRendering itemSelectorRendering =
		getItemSelectorRendering();
	Assert.assertEquals(
		"itemSelectedEventName",
		itemSelectorRendering.getItemSelectedEventName());
	List<ItemSelectorViewRenderer> itemSelectorViewRenderers =
		itemSelectorRendering.getItemSelectorViewRenderers();
	ItemSelectorViewRenderer mediaItemSelectorViewRenderer =
		itemSelectorViewRenderers.get(0);
	MediaItemSelectorCriterion mediaItemSelectorCriterion =
		(MediaItemSelectorCriterion)
			mediaItemSelectorViewRenderer.getItemSelectorCriterion();
	Assert.assertEquals(
		_mediaItemSelectorCriterion.getFileExtension(),
		mediaItemSelectorCriterion.getFileExtension());
	Assert.assertEquals(
		_mediaItemSelectorCriterion.getMaxSize(),
		mediaItemSelectorCriterion.getMaxSize());
	Assert.assertTrue(
		(ItemSelectorView<?>)
			mediaItemSelectorViewRenderer.getItemSelectorView() instanceof
				MediaItemSelectorView);
	ItemSelectorViewRenderer flickrItemSelectorViewRenderer =
		itemSelectorViewRenderers.get(1);
	FlickrItemSelectorCriterion flickrItemSelectorCriterion =
		(FlickrItemSelectorCriterion)
			flickrItemSelectorViewRenderer.getItemSelectorCriterion();
	Assert.assertEquals(
		_flickrItemSelectorCriterion.getUser(),
		flickrItemSelectorCriterion.getUser());
	Assert.assertTrue(
		(ItemSelectorView<?>)
			flickrItemSelectorViewRenderer.getItemSelectorView() instanceof
				FlickrItemSelectorView);
	Assert.assertEquals(
		itemSelectorViewRenderers.toString(), 2,
		itemSelectorViewRenderers.size());
}