ClassPKInfoItemIdentifier extends BaseInfoItemIdentifier { @Override public boolean equals(Object object) { if (this == object) { return true; } if (!(object instanceof ClassPKInfoItemIdentifier)) { return false; } ClassPKInfoItemIdentifier classPKInfoItemIdentifier = (ClassPKInfoItemIdentifier)object; return Objects.equals(_classPK, classPKInfoItemIdentifier._classPK); } ClassPKInfoItemIdentifier(long classPK); @Override boolean equals(Object object); long getClassPK(); @Override int hashCode(); @Override String toString();  }
@Test public void testEquals() { ClassPKInfoItemIdentifier classPKInfoItemIdentifier1 = new ClassPKInfoItemIdentifier(12345L); ClassPKInfoItemIdentifier classPKInfoItemIdentifier2 = new ClassPKInfoItemIdentifier(12345L); Assert.assertEquals( classPKInfoItemIdentifier1, classPKInfoItemIdentifier2); }