}
}
final FXMatrix matrix = new FXMatrix(map, fxRates);
final Map<Currency, YieldAndDiscountCurve> discounting = new LinkedHashMap<>();
discounting.put(Currency.USD, new YieldCurve("A", ConstantDoublesCurve.from(0.06, "a")));
discounting.put(Currency.EUR, new DiscountCurve("B", ConstantDoublesCurve.from(0.99, "b")));
final Map<IborIndex, YieldAndDiscountCurve> ibor = new LinkedHashMap<>();
ibor.put(new IborIndex(Currency.USD, Period.ofMonths(3), 0, DayCountFactory.INSTANCE.getDayCount("Act/360"),
BusinessDayConventionFactory.INSTANCE.getBusinessDayConvention("Following"), false, "F"),
new YieldCurve("C", ConstantDoublesCurve.from(0.03, "c")));
ibor.put(new IborIndex(Currency.EUR, Period.ofMonths(6), 1, DayCountFactory.INSTANCE.getDayCount("Act/360"),