facesContext.getExternalContext().getRequestMap().put("repeatValues", repeatValues);
UIViewRoot root = facesContext.getViewRoot();
vdl.buildView(facesContext, root, "ui_repeat_offset.xhtml");
UIRepeat repeat = (UIRepeat) root.findComponent("form:repeat");
Assert.assertNotNull(repeat);
FastWriter fw = new FastWriter();
ResponseWriter rw = facesContext.getResponseWriter();
rw = rw.cloneWithWriter(fw);
facesContext.setResponseWriter(rw);
repeat.encodeAll(facesContext);
String content = fw.toString();
// offset="2" size="1" should render only 1 row
int itemIndex1 = content.indexOf("B1");
Assert.assertEquals(-1, itemIndex1);