*/
protected final VerifyRuleFactory toVerifyRuleFactory(
String rulePath,
List<? extends ModelTester<? super T>> extraRules) {
try {
TestDataToolProvider tools = getTestTools();
List<TestRule> fragments = new ArrayList<TestRule>();
for (ModelTester<? super T> tester : extraRules) {
fragments.add(tools.toVerifyRuleFragment(getDataModelDefinition(), tester));
}
return tools.getVerifyRuleFactory(toUri(rulePath), fragments);
} catch (URISyntaxException e) {
throw new IllegalStateException(MessageFormat.format(
"Invalid rule path: {0}",
rulePath), e);
}