PojoWithEnumMap fill()
        {
            name = getClass().getSimpleName();
            enumMap = new EnumMap<Sequence, Integer>(Sequence.class);
            enumMap.put(Sequence.ONE, 1);
            enumMap.put(Sequence.TWO, 2);
            enumMap.put(Sequence.THREE, 3);
            enumMap.put(Sequence.FOUR, 4);
            enumMap.put(Sequence.FIVE, 5);

            EnumMap<Sequence, Integer> oddMap = new EnumMap<Sequence, Integer>(
                    Sequence.class);

            oddMap.put(Sequence.ONE, 1);
            oddMap.put(Sequence.THREE, 3);
            oddMap.put(Sequence.FIVE, 5);

            HashMap<String, EnumMap<Sequence, Integer>> map = new HashMap<String, EnumMap<Sequence, Integer>>();

            map.put("baz", oddMap);

            mapWithStringKEnumMapV = map;

            EnumMap<Sequence, Integer> evenMap = new EnumMap<Sequence, Integer>(
                    Sequence.class);

            evenMap.put(Sequence.TWO, 2);
            evenMap.put(Sequence.FOUR, 4);

            expectEnumMap = evenMap;

            expectMapWithStringKEnumMapV = map;

            return this;
        }
Test ser/deser of pojos with {@link EnumSet} and {@link EnumMap} fields.

@author David Yu
@created Feb 9, 2011
protostuff-runtime/src/test/java/io/protostuff/runtime/EnumSetAndMapTest.java