@Test
public void testMultipleParentsScopeTree() {

	List<String> scopeAliasesList = Arrays.asList(
		"everything.read", "everything.write", "everything",
		"everything.read.user", "analytics.read", "analytics");
	Tree.Node<String> node = ScopeTreeUtil.getScopeAliasTreeNode(
		scopeAliasesList, _scopeMatcherFactory);
	Assert.assertEquals(StringPool.BLANK, node.getValue());
	Tree<String> tree = _getTree(node, 0);
	Assert.assertEquals("analytics", tree.getValue());
	Assert.assertFalse(tree instanceof Tree.Leaf);
	Tree<String> firstChildTree = _getTree((Tree.Node<String>)tree, 0);
	Assert.assertEquals("analytics.read", firstChildTree.getValue());
	Assert.assertTrue(firstChildTree instanceof Tree.Leaf);
	Tree<String> lastTree = _getLastTree(node);
	Assert.assertEquals("everything", lastTree.getValue());
	Assert.assertFalse(lastTree instanceof Tree.Leaf);
	Tree<String> lastChildTree = _getTree((Tree.Node<String>)lastTree, 0);
	Assert.assertEquals("everything.read", lastChildTree.getValue());
	Assert.assertFalse(lastChildTree instanceof Tree.Leaf);
}