ProjectNode proj1 = (ProjectNode) root.getChildAt(0);
assertFalse(proj1.isLeaf());
assertEquals(6, proj1.getChildCount());
BasicNode modificationset = (BasicNode) proj1.getChildAt(3);
assertEquals("modificationset", modificationset.getName());
al.buildMenu(modificationset);
JPopupMenu menu = al.getPopup();
Component[] menus = menu.getComponents();
JMenuItem delete = (JMenuItem)menus[0];
assertEquals("delete", delete.getText().toLowerCase());
assertEquals("delete", delete.getActionCommand().toLowerCase());
JMenu addChild = (JMenu)menus[1];
assertEquals("add child", addChild.getText().toString().toLowerCase());
assertEquals("add child", addChild.getText().toString().toLowerCase());
Component[] children = addChild.getPopupMenu().getComponents();
List<String> nodes = computeAllowedNodes(modificationset.getPluginInfo());
assertEquals(children.length, nodes.size());
for(Component c: children) {
JMenuItem i = (JMenuItem)c;
assertTrue(nodes.contains(i.getText()));