### Question:
UIPagedData extends UIComponentBase { @Override public void restoreState(FacesContext context, Object state) { super.restoreState(context, state); createPagedDataInRequestMap(context); }  @Override String getFamily(); String getVar(); void setVar(String var); int getPageSize(); void setPageSize(int pageSize); String getSortColumn(); void setSortColumn(String sortColumn); Boolean getSortAscending(); void setSortAscending(Boolean sortAscending); @Override void restoreState(FacesContext context, Object state); @Override void encodeEnd(FacesContext context); static final String COMPONENT_FAMILY; }### Answer:
@Test public void shouldSetupPageDataOnRestoreState() throws Exception { Object state = this.uiPagedData.saveState(this.context); this.uiPagedData.restoreState(this.context, state); assertThat(this.requestMap, hasKey("pagedData")); }