@Test
public void itShouldThrowWhenRawTimeOverflows() {

    RunHibernateEntity entity = buildUnsavedRun();
    entity.setRawTime(BigDecimal.valueOf(1000d));
    try {
        daoTestRule.inTransaction(() -> dao.create(entity));
        failBecauseExceptionWasNotThrown(PersistenceException.class);
    } catch (Exception e) {
        assertThat(e)
                .isInstanceOf(PersistenceException.class)
                .hasCauseInstanceOf(DataException.class);
    }
}