EntityVersion implements Serializable { @Override public boolean equals(Object obj) { if (!(obj instanceof EntityVersion)) { return false; } EntityVersion o = (EntityVersion) obj; return new EqualsBuilder().append(o.getObjectId(), getObjectId()).append(o.getVersionId(), getVersionId()) .append(o.getObjectClass(), getObjectClass()).isEquals(); } EntityVersion();  EntityVersion(int objectId, int versionId, @Nonnull Class<? extends BaseEntity> objectClass); int getObjectId(); int getVersionId(); String getObjectClass(); @Override String toString(); @Override boolean equals(Object obj); @Override int hashCode();  }
@Test public void testEquals_1() throws Exception { EntityVersion fixture = new EntityVersion(1, 1, BaseEntity.class); Object obj = new Object(); boolean result = fixture.equals(obj); }
@Test public void testEquals_2() throws Exception { EntityVersion fixture = new EntityVersion(1, 1, BaseEntity.class); Object obj = new EntityVersion(); boolean result = fixture.equals(obj); }
@Test public void testEquals_3() throws Exception { EntityVersion fixture = new EntityVersion(1, 1, BaseEntity.class); Object obj = new EntityVersion(); boolean result = fixture.equals(obj); }