function setUpEnvForSchema(schema) {
  env = new lf.testing.MockEnv(schema);
  return env.init().then(function() {
    checker = new lf.cache.ConstraintChecker(lf.Global.get());
  });
}
@param {!lf.schema.Database} schema
@return {!IThenable}