map.put(currencies[i], i);
for (int j = 0; j < 10; j++) {
fxRates[i][j] = Math.random();
}
}
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"),