### Question:
SchemaAndTable implements Serializable { @Override public int hashCode() { return (schema != null ? 31 * schema.hashCode() : 0) + table.hashCode(); } SchemaAndTable(String schema, String table); String getSchema(); String getTable(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void equalsAndHashCode() { SchemaAndTable st1 = new SchemaAndTable(null, "table"); SchemaAndTable st2 = new SchemaAndTable(null, "table"); assertEquals(st1, st2); assertEquals(st1.hashCode(), st2.hashCode()); }