@Test
public void whenCreateWithoutHandicapGroupSetItShouldThrow() {

    EventHibernateEntity entity = buildUnsavedEvent();
    entity.setHandicapGroupSet(null);
    try {
        daoTestRule.inTransaction(() -> dao.create(entity));
        failBecauseExceptionWasNotThrown(ConstraintViolationException.class);
    } catch (ConstraintViolationException e) {
        assertThat(e.getMessage())
                .containsIgnoringCase("handicapGroupSet")
                .containsIgnoringCase("null");
    }
}