assertEquals(LocalDate.of(2012, 12, 22), updatedTrade.getTradeDate());
assertEquals(4321d, updatedTrade.getPremium());
PositionDocument positionDocument = _positionMaster.get(updatedTrade.getParentPositionId());
ManageablePosition updatedPosition = positionDocument.getPosition();
assertEquals(updatedTrade, updatedPosition.getTrade(updatedTradeId));
SwaptionSecurity updatedSecurity = (SwaptionSecurity) _securityMaster.get(updatedTrade.getSecurityLink().getObjectId(),
VersionCorrection.LATEST).getSecurity();
assertFalse(updatedSecurity.isPayer());
assertEquals(LongShort.LONG, updatedSecurity.getLongShort());
assertEquals(Currency.CAD, updatedSecurity.getCurrency());
ExternalId underlyingId = updatedSecurity.getUnderlyingId();
SecuritySearchRequest searchRequest = new SecuritySearchRequest();
searchRequest.setExternalIdSearch(new ExternalIdSearch(underlyingId));
SecuritySearchResult searchResult = _securityMaster.search(searchRequest);
SwapSecurity updatedUnderlying = (SwapSecurity) searchResult.getSingleSecurity();
ZonedDateTime tradeDate = ZonedDateTime.of(LocalDateTime.of(2013, 1, 1, 11, 0), ZoneOffset.UTC);