}
public void testVisitTree()
{
FacesContext facesContext = FacesContext.getCurrentInstance();
VisitContextFactory factory = new MockVisitContextFactory();
VisitContext visitContext = factory.getVisitContext(facesContext, null,
null);
VisitCallback callback = new MockVisitCallback();
UIComponent component = facesContext.getViewRoot();
assertEquals(VisitResult.ACCEPT, visitContext.invokeVisitCallback(