@SuppressWarnings({ "unchecked", "rawtypes" })
public void testCustomLists() throws Exception
{
ObjectMapper mapper = new ObjectMapper();
SimpleModule module = new SimpleModule("test", Version.unknownVersion());
JsonSerializer<?> ser = new CollectionSerializer(null, false, null, null, null);
final JsonSerializer<Object> collectionSerializer = (JsonSerializer<Object>) ser;
module.addSerializer(Collection.class, new JsonSerializer<Collection>() {
@Override
public void serialize(Collection value, JsonGenerator jgen, SerializerProvider provider)