@Test
public void itShouldThrowWhenSequenceLessThanOne() {

    RunHibernateEntity entity = buildUnsavedRun();
    entity.setSequence(0);
    try {
        daoTestRule.inTransaction(() -> dao.create(entity));
        failBecauseExceptionWasNotThrown(javax.validation.ConstraintViolationException.class);
    } catch (Exception e) {
        assertThat(e).isInstanceOf(javax.validation.ConstraintViolationException.class);
    }
}