### Question:
VariableRow { @Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } VariableRow other = (VariableRow) obj; return (id == other.id); } VariableRow();  VariableRow(final Variable.VariableType variableType,
                       final String name,
                       final String dataTypeDisplayName,
                       final String customDataType);  VariableRow(final Variable variable,
                       final Map<String, String> mapDataTypeNamesToDisplayNames);  VariableRow(final Variable.VariableType variableType,
                       final String name,
                       final String dataTypeDisplayName,
                       final String customDataType,
                       final List<String> tags); List<String> getTags(); void setTags(List<String> tags); long getId(); void setId(final long id); Variable.VariableType getVariableType(); void setVariableType(final Variable.VariableType variableType); String getName(); void setName(final String name); String getDataTypeDisplayName(); void setDataTypeDisplayName(final String dataTypeDisplayName); String getCustomDataType(); void setCustomDataType(final String customDataType); @Override boolean equals(final Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void testEquals() { VariableRow tested1 = new VariableRow(); assertTrue(tested1.equals(tested1)); VariableRow tested2 = new VariableRow(); assertFalse(tested2.equals(null)); VariableRow tested3 = new VariableRow(); assertFalse(tested3.equals(new Object())); VariableRow tested4 = new VariableRow(); tested4.setId(ID); VariableRow otherVariableRow4 = new VariableRow(); otherVariableRow4.setId(ID); assertTrue(tested4.equals(otherVariableRow4)); VariableRow tested5 = new VariableRow(); tested5.setId(ID); VariableRow otherTested5 = new VariableRow(); otherTested5.setId(LAST_ID); assertFalse(tested5.equals(otherTested5)); }