### Question:
TreeNodeFactory { @SuppressWarnings({ "unchecked", "rawtypes" }) public static ZkTreeNode<ForumStructureItem> buildForumStructure(@Nonnull Jcommune jcommune) { List<ZkTreeNode> sectionNodes = wrapInTreeNodes(jcommune.getSections()); return new ZkTreeNode(jcommune, sectionNodes); }  @SuppressWarnings({ "unchecked", "rawtypes" }) static ZkTreeNode<ForumStructureItem> buildForumStructure(@Nonnull Jcommune jcommune); @SuppressWarnings({ "rawtypes", "unchecked" }) static ZkTreeNode getTreeNode(T entity);  }### Answer:
@Test(dataProvider = "provideJcommuneWithSectionsAndBranches", enabled = false) public void testBuildForumStructure(Jcommune jcommune) throws Exception { TreeNode root = TreeNodeFactory.buildForumStructure(jcommune); assertEquals(root.getChildCount(), 2); assertSame(root.getChildAt(0).getChildAt(0).getData(), jcommune.getSections().get(0).getBranches().get(0)); assertSame(root.getChildAt(1).getChildAt(1).getData(), jcommune.getSections().get(1).getBranches().get(1)); }