TreeModel model = tree.getModel();
RootNode root = (RootNode) model.getRoot();
// Check for 2 project nodes.
assertEquals(2, root.getChildCount());
ProjectNode proj1 = (ProjectNode) root.getChildAt(0);
ProjectNode proj2 = (ProjectNode) root.getChildAt(1);
assertEquals("Proj1", proj1.getName());
assertEquals("Proj1", proj1.getAttributeValue("name"));
assertEquals("Proj2", proj2.getName());
assertEquals("Proj2", proj2.getAttributeValue("name"));
assertFalse(proj1.isLeaf());
assertEquals(1, proj1.getChildCount());
BasicNode schedule = (BasicNode) proj1.getChildAt(0);
assertTrue(schedule.isLeaf());
assertEquals("schedule", schedule.getName());
assertFalse(proj2.isLeaf());
assertEquals(1, proj2.getChildCount());
BasicNode modificationset = (BasicNode) proj2.getChildAt(0);
assertEquals("modificationset", modificationset.getName());
assertEquals(1, modificationset.getChildCount());
BasicNode svn = (BasicNode) modificationset.getChildAt(0);
assertEquals("svn", svn.getName());