@Test
void validateSizeAnnotation() {

    assertThatThrownBy(() -> new BeanValidatorBuilder(BeanWithInvalidSizeAnnotation.class).build())
            .isInstanceOf(Error.class)
            .hasMessageContaining("@Size must on String");
}