YieldCurveBundle { public YieldAndDiscountCurve getCurve(final String name) { if (_curves.containsKey(name)) { return _curves.get(name); } throw new IllegalArgumentException("Named yield curve not found: " + name); } YieldCurveBundle();  YieldCurveBundle(final FXMatrix fxMatrix, final Map<String, Currency> curveCurrency, final Map<String, ? extends YieldAndDiscountCurve> curvesMap);  YieldCurveBundle(final FXMatrix fxMatrix, final Map<String, Currency> curveCurrency);  YieldCurveBundle(final Map<String, ? extends YieldAndDiscountCurve> curvesMap);  YieldCurveBundle(final String[] names, final YieldAndDiscountCurve[] curves);  YieldCurveBundle(final FXMatrix fxMatrix, final String[] names, final YieldAndDiscountCurve[] curves);  YieldCurveBundle(final Map<String, ? extends YieldAndDiscountCurve> curvesMap, final FXMatrix fxMatrix, final Map<String, Currency> curveCurrency);  YieldCurveBundle(final String[] names, final YieldAndDiscountCurve[] curves, final Currency[] currencies);  YieldCurveBundle(final YieldCurveBundle bundle); YieldCurveBundle copy(); void setCurve(final String name, final YieldAndDiscountCurve curve); void replaceCurve(final String name, final YieldAndDiscountCurve curve); void addAll(final YieldCurveBundle other); YieldAndDiscountCurve getCurve(final String name); Map<String, YieldAndDiscountCurve> getCurvesMap(); int size(); Set<String> getAllNames(); Boolean containsName(final String curveName); Map<String, Currency> getCurrencyMap(); Currency getCurveCurrency(final String curveName); FXMatrix getFxRates(); @Override int hashCode(); @Override boolean equals(final Object obj);  }
@Test(expectedExceptions = IllegalArgumentException.class) public void testGetNonExistentCurve() { BUNDLE.getCurve("D"); }