assertEquals(node, cycleObject(SwapNode.class, node));
}
@Test
public void testZeroCouponInflationNodeBuilder() {
ZeroCouponInflationNode node = new ZeroCouponInflationNode(Tenor.EIGHT_MONTHS, ExternalId.of("convention", "CPI"), ExternalId.of("convention", "Fixed"), InflationNodeType.MONTHLY, "TEST");
assertEquals(node, cycleObject(ZeroCouponInflationNode.class, node));
node = new ZeroCouponInflationNode(Tenor.EIGHT_MONTHS, ExternalId.of("convention", "CPI"), ExternalId.of("convention", "Fixed"), InflationNodeType.MONTHLY, "TEST", null);
assertEquals(node, cycleObject(ZeroCouponInflationNode.class, node));
node = new ZeroCouponInflationNode(Tenor.EIGHT_MONTHS, ExternalId.of("convention", "CPI"), ExternalId.of("convention", "Fixed"), InflationNodeType.MONTHLY, "TEST", "Name");
assertEquals(node, cycleObject(ZeroCouponInflationNode.class, node));
}