DepositZero implements InstrumentDerivative { @Deprecated public String getDiscountingCurveName() { if (_discountingCurveName == null) { throw new IllegalStateException("Discounting curve name was not set"); } return _discountingCurveName; } @Deprecated  DepositZero(final Currency currency, final double startTime, final double endTime, final double initialAmount, final double notional, final double paymentAccrualFactor,
      final InterestRate rate, final double interestAmount, final String discountingCurveName);  DepositZero(final Currency currency, final double startTime, final double endTime, final double initialAmount, final double notional, final double paymentAccrualFactor,
      final InterestRate rate, final double interestAmount); Currency getCurrency(); double getStartTime(); double getEndTime(); double getInitialAmount(); double getNotional(); double getPaymentAccrualFactor(); InterestRate getRate(); double getInterestAmount(); @Deprecated String getDiscountingCurveName(); @Override T accept(final InstrumentDerivativeVisitor<S, T> visitor, final S data); @Override T accept(final InstrumentDerivativeVisitor<?, T> visitor); @Override String toString(); @Override int hashCode(); @Override boolean equals(final Object obj);  }
@SuppressWarnings("deprecation") @Test(expectedExceptions = IllegalStateException.class) public void testGetCurveName() { DEPOSIT.getDiscountingCurveName(); }