private List<ScoredInvocation> scoreInvocations(IMockInteraction interaction, IMultiset<IMockInvocation> invocations) {
    List<ScoredInvocation> result = new ArrayList<>();
    for (Map.Entry<IMockInvocation, Integer> entry : invocations.entrySet()) {
      result.add(new ScoredInvocation(entry.getKey(), entry.getValue(), interaction.computeSimilarityScore(entry.getKey())));
    }
    sort(result);
    return result;
  }
Thrown to indicate that one or more mandatory interactions matched too few invocations.

@author Peter Niederwieser
spock-core/src/main/java/org/spockframework/mock/TooFewInvocationsError.java