* Tests the construction of curve definitions.
*/
@Test
public void testCurveDefinition() {
final Set<CurveNode> nodes = new TreeSet<>();
nodes.add(new CreditSpreadNode("X", Tenor.DAY));
nodes.add(new CreditSpreadNode("X", Tenor.EIGHT_YEARS));
nodes.add(new CreditSpreadNode("Y", Tenor.ONE_MONTH));
CurveDefinition definition = new CurveDefinition("NAME", nodes);
assertEquals(definition, cycleObject(CurveDefinition.class, definition));
definition = new CurveDefinition("NAME", nodes);
definition.setUniqueId(UniqueId.of("test", "id"));
assertEquals(definition, cycleObject(CurveDefinition.class, definition));