}
//-------------------------------------------------------------------------
public void testBasicMethods() {
final MockComputationTargetResolver resolver = MockComputationTargetResolver.resolved();
final PortfolioNode underlying = resolver.getPositionSource().getPortfolioNode(UniqueId.of("Node", "0"), VersionCorrection.LATEST);
final PortfolioNode node = new LazyResolvedPortfolioNode(new LazyResolveContext(resolver.getSecuritySource(), null).atVersionCorrection(VersionCorrection.LATEST), underlying);
assertEquals(node.getName(), underlying.getName());
assertEquals(node.getParentNodeId(), underlying.getParentNodeId());
assertEquals(node.getUniqueId(), underlying.getUniqueId());
assertEquals(node.getChildNodes().size(), underlying.getChildNodes().size());
assertEquals(node.getPositions().size(), underlying.getPositions().size());
}