@Test public void equalsAnotherPositionWithTheSameCode() { JobPosition other = new JobPosition(position.getCode()); assertThat(position, is(equalTo(other))); assertThat(position.hashCode(), is(other.hashCode())); }