### Question:
ColumnDesc { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } ColumnDesc other = (ColumnDesc) obj; return key.equals(other.key); }  String getName(); void setName(String name); boolean isNullable(); void setNullable(boolean nullable); String getDefinition(); void setDefinition(String definition); boolean isUnique(); void setUnique(boolean unique); boolean isIdentity(); void setIdentity(boolean identity); SqlType getSqlType(); void setSqlType(SqlType sqlType); String getComment(); void setComment(String comment); @Override int hashCode(); @Override boolean equals(Object obj);  }### Answer:
@Test public void testEquals() throws Exception { ColumnDesc columnDesc = new ColumnDesc(); columnDesc.setName("AAA"); ColumnDesc columnDesc2 = new ColumnDesc(); columnDesc2.setName("aaa"); ColumnDesc columnDesc3 = new ColumnDesc(); columnDesc3.setName("XXX"); assertEquals(columnDesc, columnDesc2); assertEquals(columnDesc.hashCode(), columnDesc2.hashCode()); Assert.assertNotEquals(columnDesc, columnDesc3); Assert.assertNotEquals(columnDesc.hashCode(), columnDesc3.hashCode()); }