@Test
public void testIterator() throws Exception {

    FixedTableModel model = new FixedTableModel(100, 100, TableOrder.COLUMN_MAJOR);
    RectF tableRect = new RectF(0, 0, 1000, 2000);
    Iterator<RectF> it = model.getIterator(tableRect, 5);
    assertTrue(it.hasNext());
    RectF cellRect = it.next();
    assertTrue(it.hasNext());
    cellRect = it.next();
    assertTrue(it.hasNext());
    cellRect = it.next();
    assertTrue(it.hasNext());
    cellRect = it.next();
    assertTrue(it.hasNext());
    cellRect = it.next();
    assertFalse(it.hasNext());
    try {
        cellRect = it.next();
        fail("Expected IndexOutOfBoundsException");
    } catch(IndexOutOfBoundsException ex) {
        // this was expected
    }
}