function checkJoinPredicate_NestedLoop_Reverse(predicates, expectedEvalTypes) {
  var sampleRows = getSampleRows();
  var sampleEmployees = sampleRows.employees;
  var sampleJobs = sampleRows.jobs;

  var employeeRelation = lf.proc.Relation.fromRows(
      sampleEmployees, [e.getEffectiveName()]);
  var jobRelation = lf.proc.Relation.fromRows(
      sampleJobs, [j.getEffectiveName()]);

  var expectedLeftColumn = predicates[0].leftColumn;
  var expectedRightColumn = predicates[1].rightColumn;
  for (var i = 0; i < predicates.length; i++) {
    predicates[i].
        evalRelationsNestedLoopJoin(employeeRelation, jobRelation, false);
    assertEquals(expectedRightColumn, predicates[i].leftColumn);
    assertEquals(expectedLeftColumn, predicates[i].rightColumn);
    assertEquals(expectedEvalTypes[i], predicates[i].evaluatorType);
  }
}
Tests that Nested Loop Join reverses join order and evaluation type when
right table is smaller than the left.
@param {!Array<!lf.pred.JoinPredicate>} predicates
@param {!Array<!lf.eval.Type>} expectedEvalTypes