YieldCurveWithBlackForexTermStructureBundle extends ForexOptionDataBundle<BlackForexTermStructureParameters> { @Override public YieldCurveWithBlackForexTermStructureBundle copy() { final YieldCurveBundle curves = getCurvesCopy(); final BlackForexTermStructureParameters termStructure = new BlackForexTermStructureParameters(getVolatilityModel().getVolatilityCurve()); final Pair<Currency, Currency> currencyPair = Pairs.of(getCurrencyPair().getFirst(), getCurrencyPair().getSecond()); return new YieldCurveWithBlackForexTermStructureBundle(curves, termStructure, currencyPair); } YieldCurveWithBlackForexTermStructureBundle(final YieldCurveBundle ycBundle, final BlackForexTermStructureParameters termStructure, final Pair<Currency, Currency> currencyPair); static YieldCurveWithBlackForexTermStructureBundle from(final YieldCurveBundle ycBundle, final BlackForexTermStructureParameters termStructure, final Pair<Currency, Currency> currencyPair); @Override YieldCurveWithBlackForexTermStructureBundle copy(); @Override YieldCurveWithBlackForexTermStructureBundle with(final YieldCurveBundle ycBundle); @Override YieldCurveWithBlackForexTermStructureBundle with(final BlackForexTermStructureParameters volatilityModel);  }
@Test public void testCopy() { assertFalse(FX_DATA == FX_DATA.copy()); assertEquals(FX_DATA, FX_DATA.copy()); }