constraintViolations = validator.validateProperty( new Address(), "city", Default.class );
assertCorrectNumberOfViolations( constraintViolations, 1 );
assertCorrectConstraintTypes( constraintViolations, NotNull.class );
assertCorrectPropertyPaths( constraintViolations, "city" );
constraintViolations = validator.validateProperty( new Address(), "city", Address.Minimal.class );
assertCorrectNumberOfViolations( constraintViolations, 0 );
constraintViolations = validator.validateProperty( new Address(), "street", Address.Minimal.class );
assertCorrectNumberOfViolations( constraintViolations, 1 );
assertCorrectConstraintTypes( constraintViolations, NotEmpty.class );