checkNestedSetFail(SubPrivateSetterNestedBean.class, BeanAccessMode.ALL);
}
public void testNestedPropertyInfo() throws Throwable
{
NestedBean grandchild = new NestedBean();
NestedBean child = new NestedBean();
child.doSetHook(grandchild);
NestedBean parent = new NestedBean();
parent.doSetHook(child);
BeanInfo beanInfo = getBeanInfo(NestedBean.class);
PropertyInfo propertyInfo = beanInfo.getProperty("string");
PropertyInfo nestedPropertyInfo = BeanInfoUtil.getPropertyInfo(beanInfo, parent, "bean.otherBean.string");
assertEquals(propertyInfo, nestedPropertyInfo);
}