### Question:
DefaultDataModelRowSet implements DataModelRowSet<E> { public boolean contains(int rowIndex) { int ci = getContentsIndex(rowIndex); return (ci >= 0) && (ci < this.size); } 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 shouldContainRowWhenEmpty() throws Exception { assertThat(this.empty.contains(-1), is(true)); }