AnnotationDescriptor<Max> descriptor = new AnnotationDescriptor<Max>( Max.class );
descriptor.setValue( "value", 15L );
descriptor.setValue( "message", "{validator.max}" );
Max m = AnnotationFactory.create( descriptor );
MaxValidatorForCharSequence constraint = new MaxValidatorForCharSequence();
constraint.initialize( m );
testMaxValidator( constraint, true );
}