@Test(expected = SqlJetException.class)
public void verifySchemaCookie() throws SqlJetException {
final SqlJetSchema schema = new SqlJetSchema(db, btreeCopy);
btreeCopy.setSchema(schema);
final ISqlJetBtreeDataTable data = new SqlJetBtreeDataTable(btreeCopy, REP_CACHE_TABLE, true);
data.first();
final SqlJetOptions meta = new SqlJetOptions(btreeCopy, db);
btreeCopy.beginTrans(SqlJetTransactionMode.WRITE);
meta.changeSchemaVersion();
btreeCopy.commit();
db.getOptions().verifySchemaVersion(true);