MatchableDataTable { public DataRow findFirstUnprocessedRow() throws NoMatchingRowFoundException { try { return unprocessedRows.getFirst(); } catch (NoSuchElementException e) { throw new NoMatchingRowFoundException(); } } MatchableDataTable(final DataTable dt); DataRow findMatching(final Map<String, Object> keyProperties); DataRow findMatchingNothrow(final Map<String, Object> keyProperties); DataRow findFirstUnprocessedRow(); List<DataRow> getUnprocessedRows(); void markProcessed(final DataRow dr); List<DataColumn> getColumns();  }
@Test public void findFirstUnprocessedRowShouldBeR1() throws NoMatchingRowFoundException { DataRow firstUnprocessed = mdt.findFirstUnprocessedRow(); assertEquals(r1, firstUnprocessed); }