// [Issue#87]: delegating serializer
public void testDelegating() throws Exception
{
ObjectMapper mapper = new ObjectMapper();
SimpleModule module = new SimpleModule("test", Version.unknownVersion());
module.addSerializer(new StdDelegatingSerializer(Immutable.class,
new StdConverter<Immutable, Map<String,Integer>>() {
@Override
public Map<String, Integer> convert(Immutable value)
{
HashMap<String,Integer> map = new LinkedHashMap<String,Integer>();