HeaderValueValidators { public static ValueValidator getBooleanValidator() { return BooleanValueValidator.getInstance(); } private  HeaderValueValidators(); static ValueValidator getNoOpValidator(); static ValueValidator getNonEmptyValidator(); static ValueValidator getIntValidator(); static ValueValidator getLongValidator(); static ValueValidator getBooleanValidator(); static ValueValidator getJsonArrayValidator(); static ValueValidator getJsonObjectValidator();  }
@Test public void getBooleanValueValidatorReturnsAppropriateValidator() { final ValueValidator validator = HeaderValueValidators.getBooleanValidator(); try (final AutoCloseableSoftAssertions softly = new AutoCloseableSoftAssertions()) { softly.assertThat(validator.canValidate(boolean.class)).as("boolean").isTrue(); softly.assertThat(validator.canValidate(Boolean.class)).as("Boolean").isTrue(); } }