public void testPriceIndexCurve() {
final Map<Double, Double> map = new HashMap<>();
map.put(1., 0.03);
map.put(2., 0.04);
map.put(3., 0.05);
final PriceIndexCurve curve = new PriceIndexCurve(InterpolatedDoublesCurve.from(map, Interpolator1DFactory.getInterpolator("Linear")));
assertEquals(curve, cycleObject(PriceIndexCurve.class, curve));
}