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);
assertEquals(tradeDate, updatedUnderlying.getTradeDate());
}