assertSize(3, op);
assertRetainLine(3, op, 0);
assertInsert("A", op, 1);
assertRetain(1, false, op, 2);
Line line = doc.getLastLine().getPreviousLine();
textChange =
TextChange.createInsertion(line, doc.getLastLineNumber() - 1, 0, line,
doc.getLastLineNumber() - 1, "S");
op = DocOpUtils.createFromTextChange(factory, textChange);
assertSize(4, op);
assertRetainLine(2, op, 0);
assertInsert("S", op, 1);
assertRetain(line.getText().length() - 1, true, op, 2);
assertRetainLine(1, op, 3);
}