}
@Test
public void testEmptyPortfolioIsReturnedWhenAllNodesAreDenied() {
SimplePortfolioNode root = nodeTree(1, nodeTree(2, nodeTree(4)), nodeTree(3));
Portfolio pf = new SimplePortfolio("node-1", root);
Portfolio portfolio = new NodeCheckingPortfolioFilter(createDenyNodeChecker()).generateRestrictedPortfolio(pf);
assertThat(portfolio.getRootNode().size(), is(0));