final ZonedDateTime firstAccrualDate = DateUtils.getUTCDate(2010, 1, 1);
final Period paymentPeriod = Period.ofMonths(6);
final Calendar calendar = new MondayToFridayCalendar("A");
final DayCount dayCount = DayCountFactory.INSTANCE.getDayCount("Actual/360");
final BusinessDayConvention businessDay = BusinessDayConventionFactory.INSTANCE.getBusinessDayConvention("Following");
final YieldConvention yieldConvention = SimpleYieldConvention.TRUE;
final ZonedDateTime date = DateUtils.getUTCDate(2011, 1, 1);
final BondFixedSecurity b1 = BondFixedSecurityDefinition.from(CUR, maturityDate, firstAccrualDate, paymentPeriod, R1, 0, calendar, dayCount, businessDay, yieldConvention, false, "I").toDerivative(date);
final BondFixedSecurity b2 = BondFixedSecurityDefinition.from(CUR, maturityDate, firstAccrualDate, paymentPeriod, R2, 0, calendar, dayCount, businessDay, yieldConvention, false, "I").toDerivative(date);
assertEquals(b2, VISITOR.visitBondFixedSecurity(b1, R2));
}