public void testVisitTree() throws Exception {
UIComponent parent = MockRenderedValueExpression.setUpComponentStack(facesContext, input, true);
VisitContext visitContext = VisitContext.createVisitContext(facesContext, null, EnumSet.of(VisitHint.SKIP_UNRENDERED));
MockVisitCallback mockVisitCallback = new MockVisitCallback();
input.visitTree(visitContext, mockVisitCallback);
assertEquals("visitTree must not change currentComponent", parent, UIComponent.getCurrentComponent(facesContext));
}