### Question:
TableInput extends Input implements Serializable { @Override public TableInput setId(long id) { super.setId(id); return this; } TableInput();  TableInput(String name);  TableInput(String tableName, DatabaseConnection databaseConnection); String getTableName(); TableInput setTableName(String tableName); @ManyToOne(targetEntity = DatabaseConnection.class) DatabaseConnection getDatabaseConnection(); TableInput setDatabaseConnection(DatabaseConnection databaseConnection); String getComment(); TableInput setComment(String comment); @Override TableInput setId(long id); @Override @Transient @JsonIgnore String getIdentifier(); @Override int hashCode();  }### Answer:
@Test public void testEqualsAndHashCode() { long id = 42; TableInput tableInput = new TableInput("tableInput") .setId(id); TableInput equalTableInput = new TableInput("tableInput") .setId(id); TableInput notEqualTableInput = new TableInput("tableInput") .setId(23); new EqualsAndHashCodeTester<TableInput>() .performBasicEqualsAndHashCodeChecks(tableInput, equalTableInput, notEqualTableInput); }