private void checkRowsNotNull(CellSetModel model) {
    for (RowModel row : model.getRows()) {
      assertTrue(row.getKey() != null);
      assertTrue(row.getCells().size() > 0);
    }
  }
An example to scan using listener in unmarshaller for XML.
@throws Exception the exception
hbase-rest/src/test/java/org/apache/hadoop/hbase/rest/TestTableScan.java