ValidationRule extends AbstractRuleHolder { public ValidationRule() {} ValidationRule();  ValidationRule(String path, String type, String value); boolean hasChildren(); @Override String toString(); String getPath(); void setPath(String path); String getType(); void setType(String type); RuleExecutor<?, ?> getRuleExecutor(); void setRuleExecutor(RuleExecutor<?, ?> ruleExecutor); void setHandler(RuleExecutor<?, ?> handlerImpl); void setHandler(String handlerName); String getValue(); void setValue(String value); void setArgument(String value); synchronized String getMessage(); synchronized void setMessage(String message); synchronized void setMessageCode(String message); String getMessageText(); void setMessageText(String messageText); String getErrorPath(); void setErrorPath(String errorPath); CollectionStrategy getCollectionStrategy(); void setCollectionStrategy(CollectionStrategy collectionStrategy); RuleErrorMode getOnFail(); void setOnFail(RuleErrorMode onFail);  }
@Test public void testValidationRule() { ValidationRule rule = new ValidationRule("test", "type", "value"); assertEquals("test", rule.getPath()); assertEquals("type", rule.getType()); assertEquals("value", rule.getValue()); assertNotNull(rule.getRules()); assertEquals(0, rule.getRules().size()); }