@Test
public void test_search_trades_withPremium() {
ManageablePosition position = new ManageablePosition(BigDecimal.TEN, ExternalId.of("A", "B"));
LocalDate tradeDate = _now.toLocalDate();
OffsetTime tradeTime = _now.toOffsetTime().minusSeconds(500);
ManageableTrade trade1 = new ManageableTrade(BigDecimal.TEN, ExternalId.of("A", "B"), tradeDate, tradeTime, ExternalId.of("CPS", "CPV"));
trade1.setPremium(1000000.00);
trade1.setPremiumCurrency(Currency.USD);
trade1.setPremiumDate(tradeDate.plusDays(1));
trade1.setPremiumTime(tradeTime);
position.getTrades().add(trade1);
ManageableTrade trade2 = new ManageableTrade(BigDecimal.TEN, ExternalId.of("C", "D"), tradeDate, tradeTime, ExternalId.of("CPS2", "CPV2"));
trade2.setPremium(100.00);
trade2.setPremiumCurrency(Currency.GBP);
trade2.setPremiumDate(tradeDate.plusDays(10));
trade2.setPremiumTime(tradeTime.plusHours(1));
position.getTrades().add(trade2);
PositionDocument doc = new PositionDocument();
doc.setPosition(position);
_posMaster.add(doc);