@Test
void withPropertyAnnotation() {

    assertThatThrownBy(() -> new DatabaseClassValidator(TestEntityWithPropertyAnnotation.class).validateEntityClass())
            .isInstanceOf(Error.class)
            .hasMessageContaining("db entity field must not have json annotation");
}