### Question:
DefaultDataModelRowSet implements DataModelRowSet<E> { public E getRowData(int rowIndex) throws NoRowAvailableException { if (!isRowAvailable(rowIndex)) { throw new NoRowAvailableException(); } return this.contents.get(getContentsIndex(rowIndex)); } DefaultDataModelRowSet(List<E> contents);  DefaultDataModelRowSet(int offset, List<E> contents);  DefaultDataModelRowSet(int offset, List<E> contents, long totalRowCount);  DefaultDataModelRowSet(int offset, List<E> contents, int size, long totalRowCount); long getTotalRowCount(); boolean contains(int rowIndex); boolean isRowAvailable(int rowIndex); E getRowData(int rowIndex); @SuppressWarnings("unchecked") static DataModelRowSet<E> emptySet(); static DataModelRowSet<E> emptySet(int rowIndex);  }### Answer:
@Test public void shouldNotHaveRowDataWhenEmpty() throws Exception { this.thrown.expect(NoRowAvailableException.class); this.empty.getRowData(0); }