@Override
        public boolean equals(Object obj)
        {
            if (this == obj)
                return true;
            if (obj == null)
                return false;
            if (getClass() != obj.getClass())
                return false;
            PojoWithEnumMap other = (PojoWithEnumMap) obj;
            if (enumMap == null)
            {
                if (other.enumMap != null)
                    return false;
            }
            else if (!enumMap.equals(other.enumMap))
                return false;
            if (expectEnumMap == null)
            {
                if (other.expectEnumMap != null)
                    return false;
            }
            else if (!expectEnumMap.equals(other.expectEnumMap))
                return false;
            if (expectMapWithStringKEnumMapV == null)
            {
                if (other.expectMapWithStringKEnumMapV != null)
                    return false;
            }
            else if (!expectMapWithStringKEnumMapV
                    .equals(other.expectMapWithStringKEnumMapV))
                return false;
            if (mapWithStringKEnumMapV == null)
            {
                if (other.mapWithStringKEnumMapV != null)
                    return false;
            }
            else if (!mapWithStringKEnumMapV
                    .equals(other.mapWithStringKEnumMapV))
                return false;
            if (name == null)
            {
                if (other.name != null)
                    return false;
            }
            else if (!name.equals(other.name))
                return false;
            return true;
        }
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