final SqlJetSchema schema = new SqlJetSchema(db, btreeCopy);
btreeCopy.setSchema(schema);
final ISqlJetBtreeDataTable data = new SqlJetBtreeDataTable(btreeCopy, REP_CACHE_TABLE, true);
final String idx = schema.getIndexes(REP_CACHE_TABLE).iterator().next().getName();
Assert.assertNotNull(idx);
final ISqlJetBtreeIndexTable index = new SqlJetBtreeIndexTable(btreeCopy, idx, true);
Random random = new Random();
for (int i = 0; i < REPEATS_COUNT; i++) {
btreeCopy.beginTrans(SqlJetTransactionMode.WRITE);
final String hash = String.valueOf(SqlJetUtility.fromUnsigned(random.nextInt()));
if (locateHash(schema, hash) == 0) {