descriptor.setValue( "min", 1 );
descriptor.setValue( "max", 3 );
Length l = AnnotationFactory.create( descriptor );
LengthValidator constraint = new LengthValidator();
constraint.initialize( l );
assertTrue( constraint.isValid( new MyCustomStringImpl( "foo" ), null ) );
assertFalse( constraint.isValid( new MyCustomStringImpl( "foobar" ), null ) );
}