function testSinglePlan_Insert() {
  assertEquals(0, cache.getCount());

  var queryTask = new lf.proc.UserQueryTask(
      hr.db.getGlobal(), [getSampleQuery()]);
  return queryTask.exec().then(function() {
    return lf.testing.util.selectAll(global, j);
  }).then(function(results) {
    assertEquals(ROW_COUNT, results.length);
    assertEquals(ROW_COUNT, cache.getCount());
    for (var i = 0; i < ROW_COUNT; ++i) {
      assertEquals(rows[i].id(), results[i].id());
      assertObjectEquals(rows[i].payload(), results[i].payload());
    }
  });
}
Tests that an INSERT query does indeed add a new record in the database,
and update the cache.
@return {!IThenable}