public void testAddFolder() throws Exception {
// testing by doing add and subsequent get
// add a channel
UserLayoutFolderDescription nfold=new UserLayoutFolderDescription();
nfold.setName("Newly added folder");
nfold.setHidden(false);
nfold.setImmutable(true);
nfold.setUnremovable(true);
nfold.setFolderType(UserLayoutFolderDescription.REGULAR_TYPE);
String parentId="s7";
assertTrue("can a node be added ?",man.canAddNode(nfold,parentId,null));
UserLayoutFolderDescription rfold=(UserLayoutFolderDescription) man.addNode(nfold,parentId,null);
// System.out.println("Layout\n"+XML.serializeNode(man.getUserLayoutDOM()));
assertTrue("addNode() returned null",rfold!=null);
nfold.setId(rfold.getId());
assertEquals("comparing the original and addNode() result: ",nfold,rfold);
// do a get
IUserLayoutNodeDescription gnode=man.getNode(nfold.getId());
assertEquals("comparing the original and getNode() result: ",nfold,gnode);