model.addSelection(new Rectangle(10, 50, 5, 10));
List<Range> selectedRows = ObjectUtils.asList(model
.getSelectedRowPositions());
assertTrue(selectedRows.contains(new Range(1, 3)));
assertTrue(selectedRows.contains(new Range(7, 8)));
assertTrue(selectedRows.contains(new Range(50, 60)));
}