ProductContentData implements Cloneable, Serializable, ProductContentInfo { @Override public boolean equals(Object obj) { if (obj == null || !(obj instanceof ProductContentData)) { return false; } if (obj == this) { return true; } ProductContentData that = (ProductContentData) obj; EqualsBuilder builder = new EqualsBuilder() .append(this.content, that.content) .append(this.enabled, that.enabled); return builder.isEquals(); } ProductContentData();  ProductContentData(ContentData content, Boolean enabled);  ProductContentData(ProductContentData source);  ProductContentData(ProductContent source); ContentData getContent(); ProductContentData setContent(ContentData content); Boolean isEnabled(); ProductContentData setEnabled(Boolean enabled); @Override String toString(); @Override boolean equals(Object obj); @Override int hashCode(); @Override Object clone(); ProductContentData populate(ProductContentData source); ProductContentData populate(ProductContent source); static final long serialVersionUID; }
@Test public void testBaseEquality() { ProductContentData lhs = new ProductContentData(); ProductContentData rhs = new ProductContentData(); assertFalse(lhs.equals(null)); assertTrue(lhs.equals(lhs)); assertTrue(rhs.equals(rhs)); assertTrue(lhs.equals(rhs)); assertTrue(rhs.equals(lhs)); }