public void testRequiredValidator() {
RequiredValidator validator = new RequiredValidator();
assertTrue(validator.validate("test", null));
assertTrue(validator.validate(1, null));
assertTrue(validator.validate(true, null));
// empty string and 'null' are invalid
assertFalse(validator.validate("", null));
assertFalse(validator.validate(null, null));