TreeItem root = treeViewer.getTree().getItem(0);
assertEquals(0, root.getItemCount());
InsertNodeAction insert = new InsertNodeAction(treeViewer, cEditor.getXmlProcessor(), textView, "bean");
treeViewer.getTree().setSelection(root);
insert.run();
assertEquals(1, root.getItemCount());
IDOMElement node = (IDOMElement) root.getItem(0).getData();
DeleteNodeAction delete = new DeleteNodeAction(textView, node);
delete.run();