@Override
    public Optional<String> validate(String password) {
        return password.matches(DIGIT_REGEX)
                ? Optional.empty()
                : Optional.of(DIGIT_REASONING);
    }
@Test
    public void testValidateSuccess() {
        Optional<String> result = digitValidator.validate("Password123");
        Assert.assertFalse(result.isPresent());
    }