public void testValidateCascadingPropertyWithMultipleGroupsIgnoresSiblingProperties() {
final String propPath = "addresses[0].country";
CascadingPropertyValidator v = validator.unwrap(CascadingPropertyValidator.class);
Author author = new Author();
author.setAddresses(new ArrayList<Address>());
Address adr = new FooAddress();
author.getAddresses().add(adr);
Country country = new Country();
adr.setCountry(country);
Set<ConstraintViolation<Author>> iv = v.validateProperty(author, propPath, true, Default.class, Foo.class);
Assert.assertEquals(1, iv.size());