ItemSelectorCriterionSerializerImpl implements ItemSelectorCriterionSerializer { @Override public String serialize(ItemSelectorCriterion itemSelectorCriterion) { JSONSerializer jsonSerializer = JSONFactoryUtil.createJSONSerializer(); jsonSerializer.transform( _desiredItemSelectorReturnTypesJSONTransformer, "desiredItemSelectorReturnTypes"); jsonSerializer.exclude(_EXCLUDED_FIELD_NAMES); return jsonSerializer.serializeDeep(itemSelectorCriterion); }  @Override T deserialize(
		Class<T> itemSelectorCriterionClass, String json); @Override String serialize(ItemSelectorCriterion itemSelectorCriterion); @Reference(unbind = "-") void setItemSelectorViewReturnTypeProviderHandler(
		ItemSelectorViewReturnTypeProviderHandler
			itemSelectorViewReturnTypeProviderHandler);  }
@Test public void testGetProperties() { _flickrItemSelectorCriterion.setDesiredItemSelectorReturnTypes( _testURLItemSelectorReturnType); String json = _stubItemSelectorCriterionSerializerImpl.serialize( _flickrItemSelectorCriterion); String itemSelectorReturnTypeKey = ItemSelectorKeyUtil.getItemSelectorReturnTypeKey( TestURLItemSelectorReturnType.class); json = _assert( "\"desiredItemSelectorReturnTypes\":\"" + itemSelectorReturnTypeKey + "\"", json); json = _assert("\"tags\":[\"me\",\"photo\",\"picture\"]", json); json = _assert("\"user\":\"anonymous\"", json); Assert.assertEquals("{,,}", json); }