### Question:
SQLAliasSchemaDetailProperties implements Comparable<SQLAliasSchemaDetailProperties>, Serializable { public void setSchemaName(String schemaName) { _schemaName = schemaName; }  String getSchemaName(); void setSchemaName(String schemaName); int getTable(); int getView(); int getProcedure(); void setTable(int id); void setView(int id); void setProcedure(int id); int compareTo(SQLAliasSchemaDetailProperties other); @Override int hashCode(); @Override boolean equals(Object obj); static final int SCHEMA_LOADING_ID_LOAD_DONT_CACHE; static final int SCHEMA_LOADING_ID_LOAD_AND_CACHE; static final int SCHEMA_LOADING_ID_DONT_LOAD; }### Answer:
@Test public void testHashcodeAndEquals() { SQLAliasSchemaDetailProperties a = new SQLAliasSchemaDetailProperties(); a.setSchemaName("Schema1"); SQLAliasSchemaDetailProperties b = new SQLAliasSchemaDetailProperties(); b.setSchemaName("Schema1"); SQLAliasSchemaDetailProperties c = new SQLAliasSchemaDetailProperties(); c.setSchemaName("Schema2"); SQLAliasSchemaDetailProperties d = new SQLAliasSchemaDetailProperties(){ private static final long serialVersionUID = 1L; }; d.setSchemaName("Schema1"); new EqualsTester(a, b, c, d); a.setSchemaName(null); b.setSchemaName(null); d.setSchemaName(null); new EqualsTester(a, b, c, d); }