### Question:
IborRateCalculation implements RateCalculation, ImmutableBean, Serializable { public static IborRateCalculation.Builder builder() { return new IborRateCalculation.Builder(); } private  IborRateCalculation(
      DayCount dayCount,
      IborIndex index,
      ResetSchedule resetPeriods,
      FixingRelativeTo fixingRelativeTo,
      DaysAdjustment fixingDateOffset,
      NegativeRateMethod negativeRateMethod,
      Double firstRegularRate,
      Double firstRate,
      DaysAdjustment firstFixingDateOffset,
      IborRateStubCalculation initialStub,
      IborRateStubCalculation finalStub,
      ValueSchedule gearing,
      ValueSchedule spread); static IborRateCalculation of(IborIndex index); @Override SwapLegType getType(); @Override void collectCurrencies(ImmutableSet.Builder<Currency> builder); @Override void collectIndices(ImmutableSet.Builder<Index> builder); @Override ImmutableList<RateAccrualPeriod> createAccrualPeriods(
      Schedule accrualSchedule,
      Schedule paymentSchedule,
      ReferenceData refData); static IborRateCalculation.Meta meta(); static IborRateCalculation.Builder builder(); @Override IborRateCalculation.Meta metaBean(); @Override DayCount getDayCount(); IborIndex getIndex(); Optional<ResetSchedule> getResetPeriods(); FixingRelativeTo getFixingRelativeTo(); DaysAdjustment getFixingDateOffset(); NegativeRateMethod getNegativeRateMethod(); OptionalDouble getFirstRegularRate(); OptionalDouble getFirstRate(); Optional<DaysAdjustment> getFirstFixingDateOffset(); Optional<IborRateStubCalculation> getInitialStub(); Optional<IborRateStubCalculation> getFinalStub(); Optional<ValueSchedule> getGearing(); Optional<ValueSchedule> getSpread(); Builder toBuilder(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void test_builder_noIndex() { assertThatIllegalArgumentException() .isThrownBy(() -> IborRateCalculation.builder().build()); }
@Test public void test_serialization() { IborRateCalculation test = IborRateCalculation.builder() .dayCount(ACT_365F) .index(GBP_LIBOR_3M) .fixingDateOffset(MINUS_TWO_DAYS) .build(); assertSerialization(test); }