assertSame(root.getElement(0).getElement(1), attrEdit.element);
final Element leaf = root.getElement(0).getElement(1);
assertEquals(attrs, leaf.getAttributes());
doc.writeLock();
try {
attrEdit.undo();
} finally {
doc.writeUnlock();
}
assertEquals(SimpleAttributeSet.EMPTY, leaf.getAttributes());
}