}
@Test
public void testInvalidConstraint() {
Constraint cons = new IntegerConstraint();
ValidationResult result = cons.validate(new Object(), 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(null, conf);
assertFalse(result.isSuccess());
System.out.println("Message: " + result.getMessage());
result = cons.validate(new Long("12"), conf);
assertFalse(result.isSuccess());
System.out.println("Message: " + result.getMessage());
result = cons.validate(12L, conf);
assertFalse(result.isSuccess());
System.out.println("Message: " + result.getMessage());
result = cons.validate(12.8, conf);
assertFalse(result.isSuccess());
System.out.println("Message: " + result.getMessage());
}