btree = new BTree(tmpFile, true /* duplicateAllowed */);
Assert.assertTrue(btree.open());
btree.addValue(createValue("e"), 5);
btree.addValue(createValue("b"), 7);
IndexQuery query = new BasicIndexQuery(BasicIndexQuery.EQ, createValue("b"));
Callback callback = new Callback();
btree.search(query, callback);
List<Long> actual = callback.getPointers();
Assert.assertEquals(2, actual.size());
Assert.assertEquals(new Long(2), actual.get(0));