UniqueId updatedTradeId = _builder.updateTrade(updatedTradeData, updatedSecurityData, null);
ManageableTrade updatedTrade = _positionMaster.getTrade(updatedTradeId);
assertEquals("updatedCounterparty", updatedTrade.getCounterpartyExternalId().getValue());
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));
FXForwardSecurity updatedSecurity = (FXForwardSecurity) _securityMaster.get(updatedTrade.getSecurityLink().getObjectId(),
VersionCorrection.LATEST).getSecurity();
assertEquals(Currency.AUD, updatedSecurity.getPayCurrency());
assertEquals(200d, updatedSecurity.getPayAmount());