root.setExpanded(true);
assertTrue(root.getExpanded());
CollapseNodeAction collapse = new CollapseNodeAction(treeViewer, cEditor.getXmlProcessor());
treeViewer.getTree().setSelection(root);
collapse.run();
assertFalse(root.getExpanded());
ExpandNodeAction expand = new ExpandNodeAction(treeViewer, cEditor.getXmlProcessor());
treeViewer.getTree().setSelection(root);
expand.run();