@Test
public void testAddAMImageURLItemSelectorReturnTypeWithNonemptyList()
	throws Exception {

	ItemSelectorViewReturnTypeProvider itemSelectorViewReturnTypeProvider =
		new AMUploadViewReturnTypeProvider();
	List<ItemSelectorReturnType> supportedItemSelectorReturnTypes =
		new ArrayList<>();
	supportedItemSelectorReturnTypes.add(
		new FileEntryItemSelectorReturnType());
	supportedItemSelectorReturnTypes.add(new URLItemSelectorReturnType());
	List<ItemSelectorReturnType> itemSelectorReturnTypes =
		itemSelectorViewReturnTypeProvider.
			populateSupportedItemSelectorReturnTypes(
				supportedItemSelectorReturnTypes);
	Assert.assertEquals(
		itemSelectorReturnTypes.toString(), 4,
		itemSelectorReturnTypes.size());
	Assert.assertTrue(
		itemSelectorReturnTypes.get(0) instanceof
			FileEntryItemSelectorReturnType);
	Assert.assertTrue(
		itemSelectorReturnTypes.get(1) instanceof
			URLItemSelectorReturnType);
	Assert.assertTrue(
		itemSelectorReturnTypes.get(2) instanceof
			AMImageFileEntryItemSelectorReturnType);
	Assert.assertTrue(
		itemSelectorReturnTypes.get(3) instanceof
			AMImageURLItemSelectorReturnType);
}