nodes.add(swap10y);
final String interpolatorName = "interpolator name";
final String leftExtrapolatorName = "left extrapolator name";
final String rightExtrapolatorName = "right extrapolator name";
final String curveName = "NAME";
InterpolatedCurveDefinition definition = new InterpolatedCurveDefinition(curveName, nodes, interpolatorName);
definition.setUniqueId(UniqueId.of("test", "id1"));
assertEquals(definition, cycleObject(InterpolatedCurveDefinition.class, definition));
definition = new InterpolatedCurveDefinition(curveName, nodes, interpolatorName, rightExtrapolatorName);
definition.setUniqueId(UniqueId.of("test", "id2"));
assertEquals(definition, cycleObject(InterpolatedCurveDefinition.class, definition));
definition = new InterpolatedCurveDefinition(curveName, nodes, interpolatorName, rightExtrapolatorName, leftExtrapolatorName);
definition.setUniqueId(UniqueId.of("test", "id3"));
assertEquals(definition, cycleObject(InterpolatedCurveDefinition.class, definition));
final List<LocalDate> fixedDates = Arrays.asList(LocalDate.of(2013, 10, 1), LocalDate.of(2013, 11, 1), LocalDate.of(2014, 1, 1));
FixedDateInterpolatedCurveDefinition fixedDateDefinition = new FixedDateInterpolatedCurveDefinition(curveName, nodes, interpolatorName, fixedDates);
assertEquals(fixedDateDefinition, cycleObject(FixedDateInterpolatedCurveDefinition.class, fixedDateDefinition));
fixedDateDefinition = new FixedDateInterpolatedCurveDefinition(curveName, nodes, interpolatorName, rightExtrapolatorName, fixedDates);