### Question:
TirePathTree { public synchronized void buildTree(Set<String> paths) { if (logger.isDebugEnabled()) { logger.debug("sureness - start buildTree..."); } clearTree(); for (String path : paths) { insertNode(path, this.root); } if (logger.isDebugEnabled()) { logger.debug("sureness - buildTree finish"); } } TirePathTree(); synchronized void buildTree(Set<String> paths); synchronized void rebuildTree(Set<String> paths); void clearTree(); int getResourceNum(); String searchPathFilterRoles(String path);  }### Answer:
@Test public void buildTree() { Set<String> paths = new HashSet<>(); paths.add("/api paths.add("/api/v2/host===get===[role2]"); paths.add("/api/v2/host===get===[role2,role3]"); paths.add("/api/v2/host===post===[role1]"); paths.add("/api/v2/host===delete===[role2,role3]"); paths.add("/api/v2/host===put===[role3,role4]"); paths.add("/api/v1/host===put===[role2,role3,role4]"); paths.add("/api/v3/host===put===[role2,role3,role4]"); paths.add("/api/v2/detail===put===[role2,role3,role4]"); paths.add("/api/v2/mom===put===[role2,role3,role4]"); paths.add("/apimom/ha===put===[role2,role4]"); paths.add("/api/miday===get===[role6]"); paths.add("/api/dayday/mo===put===[role7]"); paths.add("/api/v5/day/book===put===[role5]"); paths.add("/api/v5egg===get===[role1]"); paths.add("/api/demo/bookegg===get===[role2]"); paths.add("swagger===get===[role10]"); paths.add("/swagger/**===get===[role11]"); root.buildTree(paths); Assert.assertEquals(22, root.getResourceNum()); }