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

  var buildQuery = function() {
    var j = db.getSchema().getJob();
    var e = db.getSchema().getEmployee();
    query.innerJoin(
        j, e.jobId.eq(j.id)).from(e);
  };

  // 542: from() has to be called before innerJoin() or leftOuterJoin().
  lf.testing.util.assertThrowsError(542, buildQuery);
}
Tests that Select#innerJoin() fails if from() is not called before
it is called.