function testOuterJoin_ThrowsOnlyJoinPredicateAllowed() {
  var query = new lf.query.SelectBuilder(hr.db.getGlobal(), []);

  var buildQuery = function() {
    var j = db.getSchema().getJob();
    var e = db.getSchema().getEmployee();
    query.from(e).leftOuterJoin(
        j, lf.op.and(j.id.eq(e.jobId), j.id.eq('jobId1')));
  };

  // 541: Outer join accepts only join predicate.
  lf.testing.util.assertThrowsError(541, buildQuery);
}
Tests that Select#leftOuterJoin() fails if the predicate is not
join predicate.