}
private PasswordValidator initializeValidator(Class<?> classWithAnnotation) throws NoSuchFieldException {
Password constraint = classWithAnnotation.getField("field").getAnnotation(Password.class);
PasswordValidator validator = new PasswordValidator();
validator.initialize(constraint);
return validator;
}
@Test