// build testUIRepeat.xhtml
UIViewRoot root = facesContext.getViewRoot();
vdl.buildView(facesContext, root, "testUIRepeat.xhtml");
// get the component instances
UIRepeat repeat = (UIRepeat) root.findComponent("form:repeat");
// create the VisitCallback
TestVisitCallback testVisitCallback = new TestVisitCallback(facesContext, repeatValues);
// save some values in #{row} and #{status} and test the
// automatic saving and restoring of them
final String var = "row";
final String varStatus = "status";
final String varValue = "someVarValue";
final String statusValue = "someStatusValue";
externalContext.getRequestMap().put(var, varValue);
externalContext.getRequestMap().put(varStatus, statusValue);
// perform visit
repeat.visitTree(VisitContext.createVisitContext(facesContext), testVisitCallback);
// created expected List
List<String> expectedClientIds = new ArrayList<String>();
expectedClientIds.add("form:repeat");
expectedClientIds.add("form:repeat:0:outputText");