public Tree() {
		this(null);
	}
@Test
	public void treeTest() {

		//配置
		TreeNodeConfig treeNodeConfig = new TreeNodeConfig();
		// 自定义属性名 都要默认值的
		treeNodeConfig.setWeightKey("order");
		treeNodeConfig.setIdKey("rid");
		treeNodeConfig.setDeep(2);

		//转换器
		List<Tree<String>> treeNodes = TreeUtil.build(nodeList, "0", treeNodeConfig,
			(treeNode, tree) -> {
				tree.setId(treeNode.getId());
				tree.setParentId(treeNode.getParentId());
				tree.setWeight(treeNode.getWeight());
				tree.setName(treeNode.getName());
				// 扩展属性 ...
				tree.putExtra("extraField", 666);
				tree.putExtra("other", new Object());
			});

		assertEquals(treeNodes.size(), 2);
	}