assertEquals(node, cycleObject(CreditSpreadNode.class, node));
}
@Test
public void testDeliverableSwapFutureNodeBuilder() {
DeliverableSwapFutureNode node = new DeliverableSwapFutureNode(2, Tenor.ONE_DAY, Tenor.THREE_MONTHS, Tenor.ONE_MONTH, ExternalId.of("convention", "future"),
ExternalId.of("convention", "swap"), "TEST");
assertEquals(node, cycleObject(DeliverableSwapFutureNode.class, node));
node = new DeliverableSwapFutureNode(2, Tenor.ONE_DAY, Tenor.THREE_MONTHS, Tenor.ONE_MONTH, ExternalId.of("convention", "future"),
ExternalId.of("convention", "swap"), "TEST", null);
assertEquals(node, cycleObject(DeliverableSwapFutureNode.class, node));
node = new DeliverableSwapFutureNode(2, Tenor.ONE_DAY, Tenor.THREE_MONTHS, Tenor.ONE_MONTH, ExternalId.of("convention", "future"),
ExternalId.of("convention", "swap"), "TEST", "Name");
assertEquals(node, cycleObject(DeliverableSwapFutureNode.class, node));
}