public void testInsertString01() throws Exception {
doc.insertString(insertOffset, "^^^", null);
assertEquals(2, getEdits(insertEvent).size());
List<?> edits = getEdits(insertEvent);
assertChange(edits.get(1), paragraph, 1, 3);
ElementChange change = (ElementChange) edits.get(1);
assertSame(leaf, change.getChildrenRemoved()[0]);
final Element[] added = change.getChildrenAdded();
for (int i = 0; i < added.length; i++) {
assertSame("@" + i, paragraph.getElement(i + leafIndex), added[i]);
}
ElementAssert[] expected = { new ElementAssert(null, 0, 5),
new ElementAssert(bold, 5, 7), new ElementAssert(null, 7, 10),