AMBlogsEditorConfigContributor extends BaseEditorConfigContributor { protected void addAMImageFileEntryItemSelectorReturnType( ItemSelectorCriterion itemSelectorCriterion) { List<ItemSelectorReturnType> desiredItemSelectorReturnTypes = itemSelectorCriterion.getDesiredItemSelectorReturnTypes(); desiredItemSelectorReturnTypes.add( 0, new AMImageFileEntryItemSelectorReturnType()); }  @Override void populateConfigJSONObject(
		JSONObject jsonObject, Map<String, Object> inputEditorTaglibAttributes,
		ThemeDisplay themeDisplay,
		RequestBackedPortletURLFactory requestBackedPortletURLFactory);  }
@Test public void testAddAMImageFileEntryItemSelectorReturnType() throws Exception { AMBlogsEditorConfigContributor amBlogsEditorConfigContributor = new AMBlogsEditorConfigContributor(); BlogsItemSelectorCriterion blogsItemSelectorCriterion = new BlogsItemSelectorCriterion(); blogsItemSelectorCriterion.setDesiredItemSelectorReturnTypes( new FileEntryItemSelectorReturnType()); amBlogsEditorConfigContributor. addAMImageFileEntryItemSelectorReturnType( blogsItemSelectorCriterion); List<ItemSelectorReturnType> desiredItemSelectorReturnTypes = blogsItemSelectorCriterion.getDesiredItemSelectorReturnTypes(); Assert.assertEquals( desiredItemSelectorReturnTypes.toString(), 2, desiredItemSelectorReturnTypes.size()); Assert.assertTrue( desiredItemSelectorReturnTypes.get(0) instanceof AMImageFileEntryItemSelectorReturnType); Assert.assertTrue( desiredItemSelectorReturnTypes.get(1) instanceof FileEntryItemSelectorReturnType); }