### Question:
TermCodeSystem implements Serializable { @Override public boolean equals(Object theO) { if (this == theO) { return true; } if (theO == null || getClass() != theO.getClass()) { return false; } TermCodeSystem that = (TermCodeSystem) theO; EqualsBuilder b = new EqualsBuilder(); b.append(myCodeSystemUri, that.myCodeSystemUri); return b.isEquals(); } TermCodeSystem(); @Override boolean equals(Object theO); @Override int hashCode(); String getCodeSystemUri(); TermCodeSystem setCodeSystemUri(@Nonnull String theCodeSystemUri); String getName(); TermCodeSystem setName(String theName); TermCodeSystemVersion getCurrentVersion(); TermCodeSystem setCurrentVersion(TermCodeSystemVersion theCurrentVersion); Long getPid(); ResourceTable getResource(); TermCodeSystem setResource(ResourceTable theResource); @Override String toString(); static final int MAX_URL_LENGTH; }### Answer:
@Test public void testEquals() { TermCodeSystem cs1 = new TermCodeSystem().setCodeSystemUri("http: TermCodeSystem cs2 = new TermCodeSystem().setCodeSystemUri("http: TermCodeSystem cs3 = new TermCodeSystem().setCodeSystemUri("http: assertEquals(cs1, cs2); assertNotEquals(cs1, cs3); assertNotEquals(cs1, null); assertNotEquals(cs1, ""); }