// now delete them all
for (int j = 0; j < i; j++) {
rtree.delete(rects[j], j);
}
assertTrue(rtree.size() == 0);
assertTrue(rtree.checkConsistency());
// check that we can make queries on an empty rtree without error.
Rectangle testRect = new Rectangle(1,2,3,4);
Point testPoint = new Point(1,2);