* Test the import of a subtree
* @throws SiteException if an error occurs.
*/
final public void testImportSubtree() throws SiteException {
DefaultSiteTree newSiteTree = new DefaultSiteTree("importedTree.xml");
Label label = new Label("root", "en");
Label[] rootLabels = { label };
newSiteTree.addNode("/root", rootLabels, null, null, false);
label = new Label("foo", "en");
Label[] fooLabels = { label };
newSiteTree.addNode("/root/foo", fooLabels, null, null, false);
label = new Label("subtree", "en");
Label[] subtreeLabels = { label };
newSiteTree.addNode("/root/subtree", subtreeLabels, "http://exact.biz", "suffix", true);
label = new Label("child", "en");
Label[] childLabels = { label };
newSiteTree.addNode("/root/subtree/child", childLabels, null, null, false);
SiteTreeNode node=newSiteTree.getNode("/root/subtree");
assertNotNull(node);
SiteTreeNode parentNode=this.siteTree.getNode("/foo/lala");