BillSecurity implements InstrumentDerivative { @Deprecated public String getDiscountingCurveName() { if (_discountingCurveName == null) { throw new IllegalStateException("Discounting curve name was not set"); } return _discountingCurveName; } @Deprecated  BillSecurity(final Currency currency, final double settlementTime, final double endTime, final double notional, final YieldConvention yieldConvention,
      final double accrualFactor, final String issuer, final String creditCurveName, final String discountingCurveName); @Deprecated  BillSecurity(final Currency currency, final double settlementTime, final double endTime, final double notional, final YieldConvention yieldConvention,
      final double accrualFactor, final LegalEntity issuer, final String creditCurveName, final String discountingCurveName);  BillSecurity(final Currency currency, final double settlementTime, final double endTime, final double notional, final YieldConvention yieldConvention, final double accrualFactor,
      final String issuer);  BillSecurity(final Currency currency, final double settlementTime, final double endTime, final double notional, final YieldConvention yieldConvention, final double accrualFactor,
      final LegalEntity issuer); Currency getCurrency(); double getSettlementTime(); double getEndTime(); double getNotional(); YieldConvention getYieldConvention(); double getAccrualFactor(); String getIssuer(); LegalEntity getIssuerEntity(); @Deprecated Pair<String, Currency> getIssuerCcy(); @Deprecated String getDiscountingCurveName(); @Deprecated String getCreditCurveName(); @Override String toString(); @Override T accept(final InstrumentDerivativeVisitor<S, T> visitor, final S data); @Override T accept(final InstrumentDerivativeVisitor<?, T> visitor); @Override int hashCode(); @Override boolean equals(final Object obj);  }
@SuppressWarnings("deprecation") @Test(expectedExceptions = IllegalStateException.class) public void testGetName() { BILL_SEC.getDiscountingCurveName(); }