### Question:
UIPagedData extends UIComponentBase { public void setPageSize(int pageSize) { Assert.isTrue(pageSize > 0, "PageSize must be a positive number"); getStateHelper().put(PropertyKeys.pageSize, pageSize); }  @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 shouldNeedPositivePageSize() throws Exception { this.thrown.expect(IllegalArgumentException.class); this.thrown.expectMessage("PageSize must be a positive number"); this.uiPagedData.setPageSize(0); }