PropertyDescriptor nameDescriptor = validator.getConstraintsForClass( Woman.class ).getConstraintsForProperty("name");
Set<ConstraintDescriptor<?>> constraints = nameDescriptor.findConstraints().lookingAt(Scope.HIERARCHY).getConstraintDescriptors();
Assert.assertEquals("Incorrect number of descriptors", 1, constraints.size());
constraints = nameDescriptor.findConstraints().lookingAt(Scope.LOCAL_ELEMENT).getConstraintDescriptors();
Assert.assertEquals("Incorrect number of descriptors", 0, constraints.size());
TestUtils.failOnModifiable(constraints, "constraintFinder constraintDescriptors");
//verify that changes to one ConstraintFinder don't affect the base:
constraints = nameDescriptor.getConstraintDescriptors();
Assert.assertEquals("Incorrect number of descriptors", 1, constraints.size());