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);
Assert.assertFalse(result.isSuccess());
System.out.println("Message: " + result.getMessage());
result = cons.validate(null, conf);
Assert.assertFalse(result.isSuccess());
System.out.println("Message: " + result.getMessage());
result = cons.validate("", conf);
Assert.assertFalse(result.isSuccess());
System.out.println("Message: " + result.getMessage());
result = cons.validate("ABC", conf);
Assert.assertFalse(result.isSuccess());
System.out.println("Message: " + result.getMessage());
result = cons.validate(new Long("-100"), conf);
Assert.assertFalse(result.isSuccess());
System.out.println("Message: " + result.getMessage());
result = cons.validate(-0.5, conf);
Assert.assertFalse(result.isSuccess());
System.out.println("Message: " + result.getMessage());
result = cons.validate(100, conf);
Assert.assertFalse(result.isSuccess());
System.out.println("Message: " + result.getMessage());
}