7 |_pos
8 |_child3
9 |_pos
10 |_pos
*/
SimplePortfolioNode portfolioRoot = new SimplePortfolioNode();
portfolioRoot.addPosition(new SimplePosition());
SimplePortfolioNode portfolioChild1 = new SimplePortfolioNode();
portfolioChild1.addPosition(new SimplePosition());
portfolioChild1.addPosition(new SimplePosition());
SimplePortfolioNode portfolioChild2 = new SimplePortfolioNode();
portfolioChild2.addPosition(new SimplePosition());
portfolioChild2.addPosition(new SimplePosition());
SimplePortfolioNode portfolioChild3 = new SimplePortfolioNode();
portfolioChild3.addPosition(new SimplePosition());
portfolioChild3.addPosition(new SimplePosition());
portfolioRoot.addChildNode(portfolioChild1);
portfolioChild1.addChildNode(portfolioChild2);
portfolioChild2.addChildNode(portfolioChild3);
AnalyticsNode root = new AnalyticsNode.PortfolioNodeBuilder(portfolioRoot).getRoot();