@Override
    public boolean equals(Object obj) {
      if (this == obj) {
        return true;
      }
      if (obj == null) {
        return false;
      }
      if (getClass() != obj.getClass()) {
        return false;
      }
      Complex2 other = (Complex2) obj;
      if (id != other.id) {
        return false;
      }
      if (innerList == null) {
        if (other.innerList != null) {
          return false;
        }
      } else if (!innerList.equals(other.innerList)) {
        return false;
      }
      if (str == null) {
        return other.str == null;
      } else
        return str.equals(other.str);
    }
Tests the functionality of the {@link CopyHelper#copy} method and the builtin copy-on-get Cache
functions.

@since GemFire 4.0
geode-core/src/integrationTest/java/org/apache/geode/CopyJUnitTest.java