### Question:
Indication extends AbstractNamedEntity<Indication> implements Comparable<Indication>, TypeWithName { @Override public boolean equals(Object o) { if (o instanceof Indication) { return super.equals(o); } return false; } Indication(Long code, String name); @Override Set<Entity> getDependencies(); void setName(String name); void setCode(Long code); Long getCode(); @Override boolean equals(Object o); @Override String toString(); @Override String getLabel(); @Override boolean deepEquals(Entity other); static final String PROPERTY_CODE; }### Answer:
@Test public void testEquals() { Indication i1 = new Indication(310497006L, "Severe depression"); Indication i2 = new Indication(310497006L, "Zware depressie"); Indication i3 = new Indication(0L, "Severe depression"); assertFalse(i1.equals(i2)); assertTrue(i1.equals(i3)); assertFalse(i2.equals(i3)); }