@Test
public void itShouldSaveOneSetAssociatedtoMultipleHandicapGroups() {

    daoTestRule.inTransaction(() -> {
        // create and store entity1
        HandicapGroupHibernateEntity entity1 = HibernateEntityTestUtils.fullHandicapGroup();
        entity1.setId(null);
        entityDao.create(entity1);
        // create and store entity2
        HandicapGroupHibernateEntity entity2 = HibernateEntityTestUtils.fullHandicapGroup();
        entity2.setId(null);
        entityDao.create(entity2);
        assertThat(entity1.getId()).isNotEqualTo(entity2.getId()); // sanity check
        // add both entities to set and update
        HandicapGroupSetHibernateEntity setEntity = HibernateEntityTestUtils.fullHandicapGroupSet();
        setEntity.setId(null);
        setEntity.setHandicapGroups(Sets.newHashSet(entity1, entity2));
        setDao.create(setEntity);
    });
}