assertEquals(1, loadedNode.getPositionIds().size());
assertEquals(positionId.getObjectId(), loadedNode.getPositionIds().get(0));
SecuritySearchRequest searchRequest = new SecuritySearchRequest();
searchRequest.setExternalIdSearch(new ExternalIdSearch(underlyingId));
SecuritySearchResult searchResult = _securityMaster.search(searchRequest);
ManageableSecurity underlying = searchResult.getSingleSecurity();
ExternalIdBundle underlyingBundle = underlying.getExternalIdBundle();
// this isn't part of the equality check below because the test swaption can't know what the ID will be
assertTrue(underlyingBundle.contains(underlyingId));
// clear these values so we can do an equality check with the test swaption
underlying.setUniqueId(null);