### Question:
UidIdentifier implements IIdentifier, Serializable { public boolean equals(Object rhs) { boolean rc = false; if (rhs != null && rhs.getClass().equals(getClass())) { rc = ((UidIdentifier)rhs).toString().equals(toString()); } return rc; } UidIdentifier(); boolean equals(Object rhs); synchronized int hashCode(); String toString(); void setString(String value);  }### Answer:
@Test public void testEquals() { UidIdentifier uid1 = createIIdentifier(); uid1.setString("1"); UidIdentifier uid2 = createIIdentifier(); uid2.setString("1"); UidIdentifier uid3 = createIIdentifier(); uid3.setString("2"); UidIdentifier uid4 = new UidIdentifier() { private static final long serialVersionUID = 1L; }; uid4.setString("1"); new EqualsTester(uid1, uid2, uid3, uid4); }