@Test
void withDefaultValue() {

    assertThatThrownBy(() -> new DatabaseClassValidator(TestEntityWithDefaultValue.class).validateEntityClass())
            .isInstanceOf(Error.class)
            .hasMessageContaining("db entity field must not have default value");
}