assertEquals("root", ((DefaultMutableTreeNode) model.getRoot()).getUserObject());
assertEquals(0, model.getChildCount(model.getRoot()));
}
public void testCreateTreeModelListener() {
TreeModelListener listener1 = tree.createTreeModelListener();
TreeModelListener listener2 = tree.createTreeModelListener();
assertTrue(listener1 instanceof JTree.TreeModelHandler);
assertNotSame(listener1, listener2);
}