//-------------------------------------------------------------------------
public void test_getPortfolioNode_UniqueId() throws Exception {
PortfolioMaster mockPortfolio = mock(PortfolioMaster.class);
PositionMaster mockPosition = mock(PositionMaster.class);
ManageablePortfolioNode manNode = new ManageablePortfolioNode("Node");
manNode.setUniqueId(UID2);
manNode.setPortfolioId(UID);
ManageablePortfolioNode manChild = new ManageablePortfolioNode("Child");
manChild.setUniqueId(UID3);
manChild.setParentNodeId(UID2);
manChild.setPortfolioId(UID);
manNode.addChildNode(manChild);
when(mockPortfolio.getNode(UID2)).thenReturn(manNode);
MasterPositionSource test = new MasterPositionSource(mockPortfolio, mockPosition);
PortfolioNode testResult = test.getPortfolioNode(UID2, VersionCorrection.LATEST);