assertEquals(node, cycleObject(RateFutureNode.class, node));
}
@Test
public void testSwapNodeBuilder() {
SwapNode node = new SwapNode(Tenor.ONE_DAY, Tenor.TEN_YEARS, ExternalId.of("convention", "pay"), ExternalId.of("convention", "receive"), "TEST");
assertEquals(node, cycleObject(SwapNode.class, node));
node = new SwapNode(Tenor.ONE_DAY, Tenor.TEN_YEARS, ExternalId.of("convention", "pay"), ExternalId.of("convention", "receive"), "TEST", null);
assertEquals(node, cycleObject(SwapNode.class, node));
node = new SwapNode(Tenor.ONE_DAY, Tenor.TEN_YEARS, ExternalId.of("convention", "pay"), ExternalId.of("convention", "receive"), "TEST", "Name");
assertEquals(node, cycleObject(SwapNode.class, node));
node = new SwapNode(Tenor.ONE_DAY, Tenor.TEN_YEARS, ExternalId.of("convention", "pay"), ExternalId.of("convention", "receive"), false, "TEST");
assertEquals(node, cycleObject(SwapNode.class, node));
node = new SwapNode(Tenor.ONE_DAY, Tenor.TEN_YEARS, ExternalId.of("convention", "pay"), ExternalId.of("convention", "receive"), false, "TEST", null);
assertEquals(node, cycleObject(SwapNode.class, node));
node = new SwapNode(Tenor.ONE_DAY, Tenor.TEN_YEARS, ExternalId.of("convention", "pay"), ExternalId.of("convention", "receive"), false, "TEST", "Name");
assertEquals(node, cycleObject(SwapNode.class, node));
}