@Override
        public int hashCode()
        {
            final int prime = 31;
            int result = 1;
            result = prime * result
                    + ((enumMap == null) ? 0 : enumMap.hashCode());
            result = prime * result
                    + ((expectEnumMap == null) ? 0 : expectEnumMap.hashCode());
            result = prime
                    * result
                    + ((expectMapWithStringKEnumMapV == null) ? 0
                            : expectMapWithStringKEnumMapV.hashCode());
            result = prime
                    * result
                    + ((mapWithStringKEnumMapV == null) ? 0
                            : mapWithStringKEnumMapV.hashCode());
            result = prime * result + ((name == null) ? 0 : name.hashCode());
            return result;
        }
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