public void testInterpolatedDiscountCurve() {
final Map<Double, Double> map = new HashMap<>();
map.put(1., 0.03);
map.put(2., 0.04);
map.put(3., 0.05);
final DiscountCurve dc1 = new DiscountCurve("Curve name-dsc",InterpolatedDoublesCurve.from(map, Interpolator1DFactory.getInterpolator("Linear")));
final DiscountCurve dc2 = cycleObject(DiscountCurve.class, dc1);
assertEquals(dc1, dc2);
}