}
//-------------------------------------------------------------------------
@Test
public void test_add_emptyMaster() {
ManageablePortfolio origPortfolio = generatePortfolio();
PortfolioDocument addedDoc = _emptyMaster.add(new PortfolioDocument(origPortfolio));
assertNotNull(addedDoc.getVersionFromInstant());
assertEquals("MemPrt", addedDoc.getUniqueId().getScheme());
assertEquals("1", addedDoc.getUniqueId().getValue());
ManageablePortfolio addedPortfolio = addedDoc.getPortfolio();
assertNotNull(addedPortfolio);
assertSame(origPortfolio, addedPortfolio);
assertEquals(addedDoc.getUniqueId(), addedPortfolio.getUniqueId());
assertAddedPortfolioNodes(addedPortfolio.getRootNode(), addedPortfolio.getUniqueId(), null);
}