PojoWithEnumSet fill()
        {
            name = getClass().getSimpleName();

            enumSet = EnumSet.noneOf(Sequence.class);
            enumSet.add(Sequence.TWO);
            enumSet.add(Sequence.FOUR);

            ArrayList<EnumSet<Sequence>> list = new ArrayList<EnumSet<Sequence>>();
            list.add(EnumSet.of(Sequence.ONE));

            collectionWIthEnumSetV = list;

            expectEnumSet = EnumSet.allOf(Sequence.class);
            expectListWithEnumSetV = list;

            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