CompetitionGroupApiEntity extends ApiEntity { @Override public int hashCode() { return HashCodeBuilder.reflectionHashCode(this); }  String getId(); void setId(String id); String getName(); void setName(String name); BigDecimal getFactor(); void setFactor(BigDecimal factor); Boolean isGrouping(); void setGrouping(Boolean grouping); String getResultTimeType(); void setResultTimeType(String resultTimeType); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void hashCodeTest() throws Exception { CompetitionGroupApiEntity otherCompetitionGroupApiEntity = ApiEntityTestUtils.fullCompetitionGroup(); Assertions.assertThat(competitionGroupApiEntity.hashCode()) .isEqualTo(otherCompetitionGroupApiEntity.hashCode()); }