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