### Question:
PagedDataModel extends LazyDataModel<E, PagedDataModelState> implements PagedDataRows<E> { public void setPageSize(int pageSize) { if (getPageSize() != pageSize) { reset(); getState().setPageSize(pageSize); } } PagedDataModel(LazyDataLoader<E, PagedDataModelState> loader, PagedDataModelState state); int getPageSize(); void setPageSize(int pageSize); boolean isSortAscending(); void setSortAscending(boolean sortAscending); String getSortColumn(); void setSortColumn(String sortColumn); void toggleSort(String sortColumn); Map<String, String> getFilters(); void setFilters(Map<String, String> filters);  }### Answer:
@Test public void shouldResetRowIndexOnPageSizeChange() throws Exception { getDataModel().setRowIndex(0); getDataModel().setPageSize(99); assertThat(getDataModel().getRowIndex(), is(-1)); assertThat(this.reset, is(true)); }