class AssertionErrorMessagesAggregator {

  public static String aggregateErrorMessages(List<String> errors) {<FILL_FUNCTION_BODY>}

  private static void countAssertions(List<String> errors, StringBuilder msg) {
    int size = errors.size();
    if (size == 1) {
      msg.append("assertion");
    } else {
      msg.append(size).append(" assertions");
    }
  }

}

    StringBuilder msg = new StringBuilder("%nThe following ");
    countAssertions(errors, msg);
    msg.append(" failed:%n");

    for (int i = 0; i < errors.size(); i++) {
      msg.append(i + 1).append(") ").append(errors.get(i)).append("%n");
    }
    return MessageFormatter.instance().format(null, null, msg.toString());
  
<no_super_class>