SwingUtilities.invokeAndWait(new Runnable() {
@Override
public void run() {
LogicalViewProvider view = project.getLookup().lookup(LogicalViewProvider.class);
Node root = view.createLogicalView();
Lookup children = Lookups.fixed((Object[])root.getChildren().getNodes());
JavaDependenciesNode dependenciesNode = children.lookup(JavaDependenciesNode.class);
BuildScriptsNode buildScriptsNode = children.lookup(BuildScriptsNode.class);
assertNotNull("Must have a dependencies node", dependenciesNode);
assertNotNull("Must have a build scripts node", buildScriptsNode);