@Test
public void bondFuture() throws JSONException {
ZonedDateTime firstDeliveryDate = zdt(2012, 12, 21, 11, 0, 0, 0, ZoneOffset.UTC);
ZonedDateTime lastDeliveryDate = zdt(2013, 12, 21, 11, 0, 0, 0, ZoneOffset.UTC);
ZonedDateTime expiryDate = zdt(2013, 12, 22, 11, 0, 0, 0, ZoneOffset.UTC);
ExternalIdBundle bundle1 = ExternalIdBundle.of(ExternalId.of("sch1", "123"), ExternalId.of("sch1", "234"));
ExternalIdBundle bundle2 = ExternalIdBundle.of(ExternalId.of("sch1", "345"));
List<BondFutureDeliverable> basket = Lists.newArrayList(
new BondFutureDeliverable(bundle1, 111),
new BondFutureDeliverable(bundle2, 222));
BondFutureSecurity security = new BondFutureSecurity(new Expiry(expiryDate), "exch", "settExch", Currency.GBP, 1234,
basket, firstDeliveryDate, lastDeliveryDate, "category");