function testWhere_ThrowsAlreadyCalled() {
  var query = new lf.query.DeleteBuilder(hr.db.getGlobal());

  var buildQuery = function() {
    var employeeTable = db.getSchema().getEmployee();
    var predicate = employeeTable.jobId.eq('dummyJobId');
    query.from(employeeTable).where(predicate).where(predicate);
  };

  // 516: where() has already been called.
  lf.testing.util.assertThrowsError(516, buildQuery);
}
Tests that Delete#where() fails if where() has already been called.