// build testValidateBeanNesting.xhtml
UIViewRoot root = facesContext.getViewRoot();
vdl.buildView(facesContext, root, "testValidateBeanNesting.xhtml");
// get the component instances
UIInput nestedinput = (UIInput) root.findComponent("form:nestedinput");
UIInput doublenestedinput = (UIInput) root.findComponent("form:doublenestedinput");
UIInput nestedinput2 = (UIInput) root.findComponent("form:nestedinput2");
UIInput nonnestedinput = (UIInput) root.findComponent("form:nonnestedinput");
// all wrapped UIInputs have to have the BeanValidator installed
Assert.assertFalse(_hasValidator(nestedinput, BeanValidator.class));
Assert.assertFalse(_hasValidator(doublenestedinput, BeanValidator.class));
Assert.assertFalse(_hasValidator(nestedinput2, BeanValidator.class));