MaxValidator validator = new MaxValidator();
assertTrue(validator.validate(null, null));
assertTrue(validator.validate(3, new TestValidatorContext("4")));
assertFalse(validator.validate(4, new TestValidatorContext("3")));
try {
validator.validate(4, new TestValidatorContext("4.4"));
fail("exception expected");
} catch (ProcessEngineException e) {