ForwardRateAgreement extends CouponFloating { @Deprecated public String getForwardCurveName() { if (_forwardCurveName == null) { throw new IllegalStateException("Forward curve name was not set"); } return _forwardCurveName; } @Deprecated  ForwardRateAgreement(final Currency currency, final double paymentTime, final String fundingCurveName, final double paymentYearFraction, final double notional, final IborIndex index,
      final double fixingTime, final double fixingPeriodStartTime, final double fixingPeriodEndTime, final double fixingYearFraction, final double rate, final String forwardCurveName);  ForwardRateAgreement(final Currency currency, final double paymentTime, final double paymentYearFraction, final double notional, final IborIndex index,
      final double fixingTime, final double fixingPeriodStartTime, final double fixingPeriodEndTime, final double fixingYearFraction, final double rate); IborIndex getIndex(); double getFixingPeriodStartTime(); double getFixingPeriodEndTime(); double getFixingYearFraction(); double getRate(); @Deprecated String getForwardCurveName(); @SuppressWarnings("deprecation") @Override ForwardRateAgreement withNotional(final double notional); @Override int hashCode(); @Override boolean equals(final Object obj); @Override T accept(final InstrumentDerivativeVisitor<S, T> visitor, final S data); @Override T accept(final InstrumentDerivativeVisitor<?, T> visitor); @Override String toString();  }
@SuppressWarnings("deprecation") @Test(expectedExceptions = IllegalStateException.class) public void testGetDiscountingCurveName() { FRA.getForwardCurveName(); }