private static final Logger s_logger = LoggerFactory.getLogger(CurveSpecificationBuilderConfigurationFudgeEncodingTest.class);
@Test
public void testCycle() {
CurveSpecificationBuilderConfiguration configuration = TestYieldCurveDefinitionAndSpecificationProvider.buildOldTestCurveConfiguration();
CurveSpecificationBuilderConfiguration cycleObject = cycleObject(CurveSpecificationBuilderConfiguration.class, configuration);
s_logger.info(configuration.toString());
s_logger.info(cycleObject.toString());
assertEquals(configuration, cycleObject(CurveSpecificationBuilderConfiguration.class, configuration));
configuration = TestYieldCurveDefinitionAndSpecificationProvider.buildTestUSDCurveConfiguration();
cycleObject = cycleObject(CurveSpecificationBuilderConfiguration.class, configuration);
s_logger.info(configuration.toString());
s_logger.info(cycleObject.toString());
assertEquals(configuration, cycleObject(CurveSpecificationBuilderConfiguration.class, configuration));
configuration = TestYieldCurveDefinitionAndSpecificationProvider.buildTestEURCurveConfiguration();
cycleObject = cycleObject(CurveSpecificationBuilderConfiguration.class, configuration);
s_logger.info(configuration.toString());
s_logger.info(cycleObject.toString());
assertEquals(configuration, cycleObject(CurveSpecificationBuilderConfiguration.class, configuration));
}