public void testInvalidConstraint() {
conf.setArgumentValue(RangeConstraint.RANGE_CONSTRAINT_MIN, "-0.5");
conf.setArgumentValue(RangeConstraint.RANGE_CONSTRAINT_MAX, "100");
ValidationResult result = cons.validate(new Object(), conf);
assertFalse(result.isSuccess());
System.out.println("Message: " + result.getMessage());
result = cons.validate(null, conf);
assertFalse(result.isSuccess());
System.out.println("Message: " + result.getMessage());
result = cons.validate("", conf);
assertFalse(result.isSuccess());
System.out.println("Message: " + result.getMessage());
result = cons.validate("ABC", conf);
assertFalse(result.isSuccess());
System.out.println("Message: " + result.getMessage());
result = cons.validate(new Long("-100"), conf);
assertFalse(result.isSuccess());
System.out.println("Message: " + result.getMessage());
result = cons.validate(-0.5, conf);
assertFalse(result.isSuccess());
System.out.println("Message: " + result.getMessage());
result = cons.validate(100, conf);
assertFalse(result.isSuccess());
System.out.println("Message: " + result.getMessage());
}