### Question:
ResolvedCmsLeg implements ImmutableBean, Serializable { public static ResolvedCmsLeg.Builder builder() { return new ResolvedCmsLeg.Builder(); } @ImmutableConstructor private  ResolvedCmsLeg(
      PayReceive payReceive,
      List<CmsPeriod> cmsPeriods); LocalDate getStartDate(); LocalDate getEndDate(); Currency getCurrency(); SwapIndex getIndex(); IborIndex getUnderlyingIndex(); static ResolvedCmsLeg.Meta meta(); static ResolvedCmsLeg.Builder builder(); @Override ResolvedCmsLeg.Meta metaBean(); PayReceive getPayReceive(); ImmutableList<CmsPeriod> getCmsPeriods(); Builder toBuilder(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void test_builder_multiCurrencyIndex() { CmsPeriod period3 = CmsPeriodTest.sut2(); assertThatIllegalArgumentException() .isThrownBy(() -> ResolvedCmsLeg.builder().payReceive(RECEIVE).cmsPeriods(PERIOD_1, period3).build()); CmsPeriod period4 = CmsPeriodTest.sutCoupon(); assertThatIllegalArgumentException() .isThrownBy(() -> ResolvedCmsLeg.builder().payReceive(RECEIVE).cmsPeriods(PERIOD_1, period4).build()); }