TreeViewer treeViewer = (TreeViewer) page.getMasterPart().getViewer();
TreeItem root = treeViewer.getTree().getItem(0);
assertEquals("bean19", ((IDOMElement) root.getItem(18).getData()).getAttribute(BeansSchemaConstants.ATTR_ID));
assertEquals("bean20", ((IDOMElement) root.getItem(19).getData()).getAttribute(BeansSchemaConstants.ATTR_ID));
LowerNodeAction lower = new LowerNodeAction(treeViewer, cEditor.getXmlProcessor(), textView);
treeViewer.getTree().setSelection(root.getItem(18));
lower.run();
assertEquals("bean20", ((IDOMElement) root.getItem(18).getData()).getAttribute(BeansSchemaConstants.ATTR_ID));
assertEquals("bean19", ((IDOMElement) root.getItem(19).getData()).getAttribute(BeansSchemaConstants.ATTR_ID));
treeViewer.getTree().setSelection(root.getItem(18));
lower.run();
assertEquals("bean19", ((IDOMElement) root.getItem(18).getData()).getAttribute(BeansSchemaConstants.ATTR_ID));
assertEquals("bean20", ((IDOMElement) root.getItem(19).getData()).getAttribute(BeansSchemaConstants.ATTR_ID));
}