Variable implements Serializable { @Override public int hashCode() { return Objects.hashCode(name); } Variable(final String name);  Variable(final String name, final VariableScope scope); String getName(); VariableScope getScope(); @Override boolean equals(final Object obj); @Override int hashCode(); @Override String toString();  }
@Test public void hashCodeTests() { assertThat(new Variable("name", VariableScope.TEST_SUITE).hashCode()) .isEqualTo(new Variable("name", VariableScope.TEST_SUITE).hashCode()); }