Tests that constraints exist for each of the properties in the data model.
try {
final PropertyDescriptor[] props =
Introspector.getBeanInfo(type, Object.class)
.getPropertyDescriptors();
for (int idx = 0; idx < props.length; idx++) {
ObjectConstraint constraint =
MutableObject.getConstraint(type, props[idx].getName());
assertNotNull("Property " + props[idx].getName()
+ " does not have a constraint.", constraint);
}
} catch (final IntrospectionException ex) {
throw new RuntimeException();
}