@Override
        public boolean equals(Object obj)
        {
            if (this == obj)
                return true;
            if (obj == null)
                return false;
            if (getClass() != obj.getClass())
                return false;
            ImmutablePojo other = (ImmutablePojo) obj;
            if (id != other.id)
                return false;
            if (name == null)
            {
                if (other.name != null)
                    return false;
            }
            else if (!name.equals(other.name))
                return false;
            return true;
        }
Test ser/deser for immutable objects.

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