### Question:
PrimeFacesPagedDataModel extends LazyDataModel<E> implements PagedDataRows<E> { @Override public int getRowCount() { return this.delegate.getRowCount(); } PrimeFacesPagedDataModel(PagedDataModel<E> delegate); @Override boolean isRowAvailable(); @Override int getRowCount(); @Override E getRowData(); @Override int getRowIndex(); @Override void setRowIndex(int rowIndex); @Override Object getWrappedData(); @Override void setWrappedData(Object o); @Override int getPageSize(); @Override 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); @Override void addDataModelListener(DataModelListener listener); @Override void removeDataModelListener(DataModelListener listener); @Override DataModelListener[] getDataModelListeners(); @Override void setRowCount(int rowCount); @Override List<E> load(int first, int pageSize, String sortField, SortOrder sortOrder, Map<String, String> filters); List<E> load(int first, int pageSize, String sortField, boolean sortOrder, Map<String, String> filters);  }### Answer:
@Test public void shouldDelegateGetRowCount() throws Exception { this.dataModel.getRowCount(); verify(this.delegate).getRowCount(); }