function assertSplitLines(expected, string, opt_keepNewlines) {
      const keepNewlines = opt_keepNewlines || false;
      const lines = newlines.splitLines(string, keepNewlines);
      assertElementsEquals(expected, lines);
    }
@param {!Array<string>} expected
@param {string} string
@param {boolean=} opt_keepNewlines