function runTestImport(options) {
  // Need to guarantee that the two DBs have different names.
  var builder1 = lf.testing.hrSchema.getSchemaBuilder(
      'hr1_' + new Date().getTime());
  var builder2 = lf.testing.hrSchema.getSchemaBuilder(
      'hr2_' + new Date().getTime());
  var dataGen = new lf.testing.hrSchema.MockDataGenerator(builder1.getSchema());
  dataGen.generate(
      /* jobCount */ 100, /* employeeCount */ 1000, /* departmentCount */ 10);

  var db, db2;
  var data;
  return builder1.connect(options).then(function(dbInstance) {
    db = dbInstance;
    var d = db.getSchema().table('Department');
    var l = db.getSchema().table('Location');
    var c = db.getSchema().table('Country');
    var r = db.getSchema().table('Region');
    var j = db.getSchema().table('Job');
    var e = db.getSchema().table('Employee');

    var tx = db.createTransaction();
    return tx.exec([
      db.insert().into(r).values(dataGen.sampleRegions),
      db.insert().into(c).values(dataGen.sampleCountries),
      db.insert().into(l).values(dataGen.sampleLocations),
      db.insert().into(d).values(dataGen.sampleDepartments),
      db.insert().into(j).values(dataGen.sampleJobs),
      db.insert().into(e).values(dataGen.sampleEmployees)
    ]);
  }).then(function() {
    return db.export();
  }).then(function(exportedData) {
    data = exportedData;
    db.close();
    return builder2.connect(options);
  }).then(function(dbInstance) {
    db2 = dbInstance;
    data['name'] = builder2.getSchema().name();
    return db2.import(data);
  }).then(function() {
    return db2.export();
  }).then(function(exportedData) {
    assertEquals(builder2.getSchema().name(), exportedData['name']);
    assertEquals(builder2.getSchema().version(), exportedData['version']);
    assertObjectEquals(data, exportedData);
  });
}
@param {!lf.schema.ConnectOptions} options Connect options.
@return {!IThenable}