}
return createNode(FRASecurity.SECURITY_TYPE, securities);
}
private BondFutureSecurity createBondFutureSecurity() {
final Expiry expiry = expiry();
final String tradingExchange = exchange();
final String settlementExchange = exchange();
final Currency currency = currency();
final double unitAmount = 0;
final Collection<? extends BondFutureDeliverable> basket = Arrays.asList(bondFutureDeliverable(), bondFutureDeliverable());
final ZonedDateTime firstDeliveryDate = expiry.getExpiry().minusDays(14);
final ZonedDateTime lastDeliveryDate = expiry.getExpiry().plusDays(14);
final String category = "category";
final BondFutureSecurity security = new BondFutureSecurity(expiry, tradingExchange, settlementExchange, currency, unitAmount, basket, firstDeliveryDate, lastDeliveryDate, category);
store(security);
return security;
}