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