### Question:
IborInterpolatedRateComputation implements RateComputation, ImmutableBean, Serializable { public static IborInterpolatedRateComputation of( IborIndex index1, IborIndex index2, LocalDate fixingDate, ReferenceData refData) { boolean inOrder = indicesInOrder(index1, index2, fixingDate); IborIndexObservation obs1 = IborIndexObservation.of(index1, fixingDate, refData); IborIndexObservation obs2 = IborIndexObservation.of(index2, fixingDate, refData); return new IborInterpolatedRateComputation(inOrder ? obs1 : obs2, inOrder ? obs2 : obs1); } private  IborInterpolatedRateComputation(
      IborIndexObservation shortObservation,
      IborIndexObservation longObservation); static IborInterpolatedRateComputation of(
      IborIndex index1,
      IborIndex index2,
      LocalDate fixingDate,
      ReferenceData refData); static IborInterpolatedRateComputation of(
      IborIndexObservation shortObservation,
      IborIndexObservation longObservation); LocalDate getFixingDate(); @Override void collectIndices(ImmutableSet.Builder<Index> builder); static IborInterpolatedRateComputation.Meta meta(); @Override IborInterpolatedRateComputation.Meta metaBean(); IborIndexObservation getShortObservation(); IborIndexObservation getLongObservation(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void test_of_sameIndex() { assertThatIllegalArgumentException() .isThrownBy( () -> IborInterpolatedRateComputation.of(GBP_LIBOR_1M, GBP_LIBOR_1M, FIXING_DATE, REF_DATA)); }
@Test public void test_of_differentCurrencies() { assertThatIllegalArgumentException() .isThrownBy( () -> IborInterpolatedRateComputation.of(EUR_EURIBOR_2W, GBP_LIBOR_1M, FIXING_DATE, REF_DATA)); }
@Test public void coverage() { IborInterpolatedRateComputation test = IborInterpolatedRateComputation.of(GBP_LIBOR_1M, GBP_LIBOR_3M, FIXING_DATE, REF_DATA); coverImmutableBean(test); IborInterpolatedRateComputation test2 = IborInterpolatedRateComputation.of(USD_LIBOR_1M, USD_LIBOR_3M, date(2014, 7, 30), REF_DATA); coverBeanEquals(test, test2); }
@Test public void test_serialization() { IborInterpolatedRateComputation test = IborInterpolatedRateComputation.of(GBP_LIBOR_1M, GBP_LIBOR_3M, FIXING_DATE, REF_DATA); assertSerialization(test); }