    @Test
    public void testVisitor() throws Exception {

        createPageFileAndIndex((short)100);
        BTreeIndex<String,Long> index = ((BTreeIndex<String,Long>)this.index);
          
        // Insert in reverse order..
        doInsert(1000);
        
        reloadIndex();
        tx.commit();

        // BTree should iterate it in sorted order.
        
        index.visit(new IndexVisitor<String, Long>(){
            public boolean isInterestedInKeysBetween(String first, String second, Comparator comparator) {
                return true;
            }
            public void visit(List<String> strings, List<Long> longs, Comparator comparator) {
            }
            public boolean isSatiated() {
                return false;
            }
        });

    }