### Question:
CapitalIndexedBond implements SecuritizedProduct, Resolvable<ResolvedCapitalIndexedBond>, ImmutableBean, Serializable { public static CapitalIndexedBond.Builder builder() { return new CapitalIndexedBond.Builder(); } CapitalIndexedBond(
      SecurityId securityId,
      Currency currency,
      double notional,
      PeriodicSchedule accrualSchedule,
      InflationRateCalculation rateCalculation,
      DayCount dayCount,
      CapitalIndexedBondYieldConvention yieldConvention,
      LegalEntityId legalEntityId,
      DaysAdjustment settlementDateOffset,
      DaysAdjustment exCouponPeriod); double getFirstIndexValue(); @Override ResolvedCapitalIndexedBond resolve(ReferenceData refData); static CapitalIndexedBond.Meta meta(); static CapitalIndexedBond.Builder builder(); @Override CapitalIndexedBond.Meta metaBean(); @Override SecurityId getSecurityId(); @Override Currency getCurrency(); double getNotional(); PeriodicSchedule getAccrualSchedule(); InflationRateCalculation getRateCalculation(); DayCount getDayCount(); CapitalIndexedBondYieldConvention getYieldConvention(); 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(() -> CapitalIndexedBond.builder() .securityId(SECURITY_ID) .notional(NOTIONAL) .currency(USD) .dayCount(ACT_ACT_ISDA) .rateCalculation(RATE_CALC) .exCouponPeriod(EX_COUPON) .legalEntityId(LEGAL_ENTITY) .yieldConvention(US_IL_REAL) .settlementDateOffset(DaysAdjustment.ofBusinessDays(-2, USNY)) .accrualSchedule(SCHEDULE) .build()); assertThatIllegalArgumentException() .isThrownBy(() -> CapitalIndexedBond.builder() .securityId(SECURITY_ID) .notional(NOTIONAL) .currency(USD) .dayCount(ACT_ACT_ISDA) .rateCalculation(RATE_CALC) .exCouponPeriod( DaysAdjustment.ofCalendarDays(7, BusinessDayAdjustment.of(BusinessDayConventions.FOLLOWING, USNY))) .legalEntityId(LEGAL_ENTITY) .yieldConvention(US_IL_REAL) .settlementDateOffset(SETTLE_OFFSET) .accrualSchedule(SCHEDULE) .build()); }