@Override
        public boolean equals(Object obj)
        {
            if (this == obj)
                return true;
            if (obj == null)
                return false;
            if (getClass() != obj.getClass())
                return false;
            PojoWithEnumSet other = (PojoWithEnumSet) obj;
            if (collectionWIthEnumSetV == null)
            {
                if (other.collectionWIthEnumSetV != null)
                    return false;
            }
            else if (!collectionWIthEnumSetV
                    .equals(other.collectionWIthEnumSetV))
                return false;
            if (enumSet == null)
            {
                if (other.enumSet != null)
                    return false;
            }
            else if (!enumSet.equals(other.enumSet))
                return false;
            if (expectEnumSet == null)
            {
                if (other.expectEnumSet != null)
                    return false;
            }
            else if (!expectEnumSet.equals(other.expectEnumSet))
                return false;
            if (expectListWithEnumSetV == null)
            {
                if (other.expectListWithEnumSetV != null)
                    return false;
            }
            else if (!expectListWithEnumSetV
                    .equals(other.expectListWithEnumSetV))
                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