### Question:
CapitalIndexedBondSecurity implements LegalEntitySecurity, ImmutableBean, Serializable { public static CapitalIndexedBondSecurity.Builder builder() { return new CapitalIndexedBondSecurity.Builder(); } private  CapitalIndexedBondSecurity(
      SecurityInfo info,
      Currency currency,
      double notional,
      PeriodicSchedule accrualSchedule,
      InflationRateCalculation rateCalculation,
      DayCount dayCount,
      CapitalIndexedBondYieldConvention yieldConvention,
      LegalEntityId legalEntityId,
      DaysAdjustment settlementDateOffset,
      DaysAdjustment exCouponPeriod); double getFirstIndexValue(); @Override ImmutableSet<SecurityId> getUnderlyingIds(); @Override CapitalIndexedBondSecurity withInfo(SecurityInfo info); @Override CapitalIndexedBond createProduct(ReferenceData refData); @Override CapitalIndexedBondTrade createTrade(TradeInfo info, double quantity, double tradePrice, ReferenceData refData); @Override CapitalIndexedBondPosition createPosition(PositionInfo positionInfo, double quantity, ReferenceData refData); @Override CapitalIndexedBondPosition createPosition(
      PositionInfo positionInfo,
      double longQuantity,
      double shortQuantity,
      ReferenceData refData); static CapitalIndexedBondSecurity.Meta meta(); static CapitalIndexedBondSecurity.Builder builder(); @Override CapitalIndexedBondSecurity.Meta metaBean(); @Override SecurityInfo getInfo(); @Override Currency getCurrency(); double getNotional(); PeriodicSchedule getAccrualSchedule(); InflationRateCalculation getRateCalculation(); DayCount getDayCount(); CapitalIndexedBondYieldConvention getYieldConvention(); @Override LegalEntityId getLegalEntityId(); DaysAdjustment getSettlementDateOffset(); DaysAdjustment getExCouponPeriod(); Builder toBuilder(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void test_builder_fail() { assertThatIllegalArgumentException() .isThrownBy(() -> CapitalIndexedBondSecurity.builder() .info(INFO) .dayCount(DAY_COUNT) .rateCalculation(RATE) .legalEntityId(LEGAL_ENTITY) .currency(EUR) .notional(NOTIONAL) .accrualSchedule(PERIOD_SCHEDULE) .settlementDateOffset(DATE_OFFSET) .yieldConvention(YIELD_CONVENTION) .exCouponPeriod(DaysAdjustment.ofBusinessDays(EX_COUPON_DAYS, EUTA, BUSINESS_ADJUST)) .build()); assertThatIllegalArgumentException() .isThrownBy(() -> CapitalIndexedBondSecurity.builder() .info(INFO) .dayCount(DAY_COUNT) .rateCalculation(RATE) .legalEntityId(LEGAL_ENTITY) .currency(EUR) .notional(NOTIONAL) .accrualSchedule(PERIOD_SCHEDULE) .settlementDateOffset(DaysAdjustment.ofBusinessDays(-3, EUTA)) .yieldConvention(YIELD_CONVENTION) .build()); }