@Test
void validateWithPropertyAnnotation() {

    assertThatThrownBy(() -> new QueryParamClassValidator(TestQueryParamBeanWithPropertyAnnotation.class, new BeanClassNameValidator()).validate())
            .isInstanceOf(Error.class)
            .hasMessageContaining("field must not have @Property");
}