ArrangeableModel extends ExtendedDataModel<Object> implements Arrangeable { public boolean isRowAvailable() { return originalModel.isRowAvailable(); } ArrangeableModel(ExtendedDataModel<?> originalModel, String var, String filterVar); void addDataModelListener(DataModelListener listener); void removeDataModelListener(DataModelListener listener); DataModelListener[] getDataModelListeners(); Object getRowKey(); void setRowKey(Object key); void walk(FacesContext context, DataVisitor visitor, Range range, Object argument); int getRowCount(); Object getRowData(); int getRowIndex(); Object getWrappedData(); boolean isRowAvailable(); void setRowIndex(int rowIndex); void setWrappedData(Object data); void arrange(FacesContext context, ArrangeableState state);  }
@Test public void testIsRowAvailable() { arrangeableModel.setRowKey(null); Assert.assertFalse(extendedDataModel.isRowAvailable()); arrangeableModel.setRowKey(ROW_KEY); Assert.assertTrue(extendedDataModel.isRowAvailable()); arrangeableModel.setRowKey(extendedDataModel.getRowCount()); Assert.assertFalse(extendedDataModel.isRowAvailable()); }