HeaderValueValidators { public static ValueValidator getLongValidator() { return LongValueValidator.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 getLongValueValidatorReturnsAppropriateValidator() { final ValueValidator validator = HeaderValueValidators.getLongValidator(); try (final AutoCloseableSoftAssertions softly = new AutoCloseableSoftAssertions()) { softly.assertThat(validator.canValidate(long.class)).as("long").isTrue(); softly.assertThat(validator.canValidate(Long.class)).as("Long").isTrue(); } }