@Test
 public void testIterationStatusVar() {
   TestedListItem li;
   int maxIndex;
   for (Integer page : pages) {
     if (!page.equals(scroller.getActivePageNumber())) {
       scroller.switchTo(page);
     }
     maxIndex = ROWS * (page - 1);
     for (Integer item : items) {
       li = list.getItems().get(item);
       Assert.assertEquals(
           li.getIterationStatusVarText(),
           String.format(
               ITERATION_STATUS_TEMPLATE,
               maxIndex,
               maxIndex + ROWS - 1,
               item + maxIndex,
               item + 1,
               (item == 0),
               (item == 19),
               (item % 2 == 1)));
     }
   }
 }
 @Test
 public void testRowKeyVar() {
   TestedListItem li;
   String indexString;
   int index;
   for (Integer page : pages) {
     if (!page.equals(scroller.getActivePageNumber())) {
       scroller.switchTo(page);
     }
     index = ROWS * (page - 1);
     for (Integer item : items) {
       indexString = String.valueOf(index + item);
       li = list.getItems().get(item);
       Assert.assertEquals(li.getRowKeyVarText(), indexString);
     }
   }
 }
 @Test
 public void testStateVar() {
   TestedListItem li;
   String startIndexString;
   for (Integer page : pages) {
     if (!page.equals(scroller.getActivePageNumber())) {
       scroller.switchTo(page);
     }
     startIndexString = String.valueOf(ROWS * (page - 1));
     for (Integer item : items) {
       li = list.getItems().get(item);
       Assert.assertEquals(li.getFirstRowFromStateVarText(), startIndexString);
       Assert.assertEquals(li.getRowsFromStateVarText(), ROWS_STRING);
       Assert.assertEquals(
           li.getRangeFromStateVarText(), String.format(RANGE_TEMPLATE, startIndexString, ROWS));
     }
   }
 }