Vector<Vector<String>> obj7 = new Vector<Vector<String>>();
Vector<String> obj71 = new Vector<String>();
obj71.add("node1");
obj71.add("node2");
obj7.add(obj71);
TreeModel model = JTree.createTreeModel(obj1);
assertTrue(model instanceof DefaultTreeModel);
assertTrue(model.getRoot() instanceof DefaultMutableTreeNode);
assertEquals("root", ((DefaultMutableTreeNode) model.getRoot()).getUserObject());
assertEquals(3, model.getChildCount(model.getRoot()));
assertTrue(model.getChild(model.getRoot(), 0) instanceof JTree.DynamicUtilTreeNode);
model = JTree.createTreeModel(obj2);
assertTrue(model instanceof DefaultTreeModel);
assertTrue(model.getRoot() instanceof DefaultMutableTreeNode);
assertEquals("root", ((DefaultMutableTreeNode) model.getRoot()).getUserObject());
assertEquals(3, model.getChildCount(model.getRoot()));
assertTrue(model.getChild(model.getRoot(), 0) instanceof JTree.DynamicUtilTreeNode);
model = JTree.createTreeModel(obj3);
assertTrue(model instanceof DefaultTreeModel);
assertTrue(model.getRoot() instanceof DefaultMutableTreeNode);
assertEquals("root", ((DefaultMutableTreeNode) model.getRoot()).getUserObject());
assertEquals(3, model.getChildCount(model.getRoot()));
assertTrue(model.getChild(model.getRoot(), 0) instanceof JTree.DynamicUtilTreeNode);
assertTrue(((String) ((DefaultMutableTreeNode) ((DefaultMutableTreeNode) model
.getRoot()).getChildAt(0)).getUserObject()).startsWith("node"));
model = JTree.createTreeModel(obj4);
assertTrue(model instanceof DefaultTreeModel);
assertTrue(model.getRoot() instanceof DefaultMutableTreeNode);
assertEquals("root", ((DefaultMutableTreeNode) model.getRoot()).getUserObject());
assertEquals(0, model.getChildCount(model.getRoot()));
model = JTree.createTreeModel(obj5);
assertTrue(model instanceof DefaultTreeModel);
assertTrue(model.getRoot() instanceof DefaultMutableTreeNode);
assertEquals("root", ((DefaultMutableTreeNode) model.getRoot()).getUserObject());
assertEquals(0, model.getChildCount(model.getRoot()));
model = JTree.createTreeModel(obj6);
assertTrue(model instanceof DefaultTreeModel);
assertTrue(model.getRoot() instanceof DefaultMutableTreeNode);
assertEquals("root", ((DefaultMutableTreeNode) model.getRoot()).getUserObject());
assertEquals(0, model.getChildCount(model.getRoot()));
model = JTree.createTreeModel(obj7);
assertTrue(model instanceof DefaultTreeModel);
assertTrue(model.getRoot() instanceof DefaultMutableTreeNode);
assertEquals("root", ((DefaultMutableTreeNode) model.getRoot()).getUserObject());
assertEquals(1, model.getChildCount(model.getRoot()));
DefaultMutableTreeNode child = (DefaultMutableTreeNode) ((DefaultMutableTreeNode) model
.getRoot()).getChildAt(0);
assertTrue(child instanceof JTree.DynamicUtilTreeNode);
assertEquals(obj71, child.getUserObject());
assertEquals(2, child.getChildCount());
assertTrue(model.getChild(child, 0) instanceof JTree.DynamicUtilTreeNode);
model = JTree.createTreeModel(null);
assertTrue(model instanceof DefaultTreeModel);
assertTrue(model.getRoot() instanceof DefaultMutableTreeNode);
assertEquals("root", ((DefaultMutableTreeNode) model.getRoot()).getUserObject());
assertEquals(0, model.getChildCount(model.getRoot()));
}