@Test
public void itShouldCreateWithMultipleCompetitionGroups() {

    daoTestRule.inTransaction(() -> {
        // create entities
        CompetitionGroupHibernateEntity openEntity = HibernateEntityTestUtils.fullCompetitionGroup(
                null,
                "Open",
                false,
                BigDecimal.ONE,
                CompetitionGroup.ResultTimeType.RAW.toString()
        );
        entityDao.create(openEntity);
        CompetitionGroupHibernateEntity noviceEntity = HibernateEntityTestUtils.fullCompetitionGroup(
                null,
                "Novice",
                true,
                BigDecimal.ONE,
                CompetitionGroup.ResultTimeType.HANDICAP.toString()
        );
        entityDao.create(noviceEntity);
        CompetitionGroupHibernateEntity proEntity = HibernateEntityTestUtils.fullCompetitionGroup(
                null,
                "Pro",
                true,
                BigDecimal.ONE,
                CompetitionGroup.ResultTimeType.HANDICAP.toString()
        );
        entityDao.create(proEntity);
        // create set with multiple competition groups
        CompetitionGroupSetHibernateEntity setEntity = HibernateEntityTestUtils.fullCompetitionGroupSet(
                null,
                "2017 Competition Groups",
                Sets.newHashSet(openEntity, noviceEntity, proEntity)
        );
        setDao.create(setEntity);
    });
}