@Test
void testMyPojo_warnings() {

    final Injector injector = Guice.createInjector(new ValidationModule());
    injector.injectMembers(this);
    var myPojo = new MyPojoWarnings();
    myPojo.setBooleanValue(false);
    myPojo.setRegexValue("(((");
    myPojo.setCronValue("xxxxxxxxxxxxx");
    myPojo.setIntValue(0);
    ConfigValidator.Result result = configValidator.validate(myPojo);
    LOGGER.info(result.toString());
    result.handleViolations((constraintViolation, validationSeverity) -> {
        LOGGER.info("{}, {}", validationSeverity, constraintViolation);
    });
    Assertions.assertThat(result.getErrorCount()).isEqualTo(0);
    Assertions.assertThat(result.getWarningCount()).isEqualTo(4);
}