quals(4, resultsArray.length);

  goog.array.forEach([result1, result2, result3, result4], function(res) {
      assertTrue(goog.array.contains(resultsArray, res));
  });
}

function resolveAllGivenResultsToSuccess() {
  goog.array.forEach([result1, result2, result3, result4], function(res) {
      res.setValue(1);
  });
}

function resolveAllGivenResultsToError() {
  goog.array.forEach([result1, result2, result3, result4], function(res) {
      res.setError();
  });
}

function resolveSomeGivenResultsToSuc