### Question:
SQLAliasSchemaDetailProperties implements Comparable<SQLAliasSchemaDetailProperties>, Serializable { public int compareTo(SQLAliasSchemaDetailProperties other) { return _schemaName.compareTo(other._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 testCompareTo() { SQLAliasSchemaDetailProperties a = new SQLAliasSchemaDetailProperties(); a.setSchemaName("Schema1"); SQLAliasSchemaDetailProperties b = new SQLAliasSchemaDetailProperties(); b.setSchemaName("Schema1"); SQLAliasSchemaDetailProperties c = new SQLAliasSchemaDetailProperties(); c.setSchemaName("Schema2"); assertEquals("Schema1".compareTo("Schema1"), a.compareTo(b)); assertEquals("Schema1".compareTo("Schema2"), a.compareTo(c)); }