### Question:
ExecutionSetting implements Serializable { public ExecutionSetting setId(long id) { this.id = id; return this; } protected  ExecutionSetting();  ExecutionSetting(List<String> parameterValuesJson, List<String> inputsJson,
                          String executionIdentifier); @XmlTransient @ElementCollection @Column(columnDefinition = "LONGVARCHAR") List<String> getParameterValuesJson(); void setParameterValuesJson(List<String> parameterValuesJson); @XmlTransient @ElementCollection @Column(columnDefinition = "LONGVARCHAR") List<String> getInputsJson(); void setInputsJson(List<String> inputs); String getExecutionIdentifier(); void setExecutionIdentifier(String executionIdentifier); Boolean getCacheResults(); ExecutionSetting setCacheResults(Boolean cacheResults); Boolean getWriteResults(); ExecutionSetting setWriteResults(Boolean writeResults); Boolean getCountResults(); ExecutionSetting setCountResults(Boolean countResults); @Id @GeneratedValue long getId(); ExecutionSetting setId(long id); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void testEqualsAndHashCode() { int id = 42; ExecutionSetting executionSetting = new ExecutionSetting(null, null, null).setId(id); ExecutionSetting equalExecutionSetting = new ExecutionSetting(null, null, null).setId(id); ExecutionSetting notEqualExecutionSetting = new ExecutionSetting(null, null, null).setId(23); new EqualsAndHashCodeTester<ExecutionSetting>() .performBasicEqualsAndHashCodeChecks(executionSetting, equalExecutionSetting, notEqualExecutionSetting); }