@Test public void twoSettingsShouldBeEqualIfTheyShareSameCode() { ReportSettings other = new ReportSettings(settings.getCode()); assertThat(other, is(equalTo(settings))); }