startViewRequest("/table.xhtml");
processLifecycleExecuteAndRender();
UIComponent comp = facesContext.getViewRoot().findComponent("mainForm:component");
Assert.assertEquals(1, comp.getChildCount());
HtmlDataTable dataTable = (HtmlDataTable) comp.getChildren().get(0);
Assert.assertEquals(1, dataTable.getChildCount());
UICommand button = (UICommand) facesContext.getViewRoot().findComponent("mainForm:postback");
client.submit(button);
processLifecycleExecuteAndRender();
comp = facesContext.getViewRoot().findComponent("mainForm:component");
Assert.assertEquals(1, comp.getChildCount());
dataTable = (HtmlDataTable) comp.getChildren().get(0);
Assert.assertEquals(1, dataTable.getChildCount());
}