final Frequency premiumFrequency = SimpleFrequency.QUARTERLY;
final Calendar calendar = new MondayToFridayCalendar("TestCalendar");
final DayCount dayCount = new ActualThreeSixty();
final BusinessDayConvention businessDays = new FollowingBusinessDayConvention();
final Convention convention = new Convention(settlementDays, dayCount, businessDays, calendar, "");
final StubType stubType = StubType.SHORT_START;
final ISDACDSPremiumDefinition premiumDefinition = ISDACDSPremiumDefinition.from(startDate, maturity, premiumFrequency, convention, stubType, /* protectStart */ true, notional, spread, Currency.EUR, calendar);
return new ISDACDSDefinition(startDate, maturity, premiumDefinition, notional, spread, recoveryRate, /* accrualOnDefault */ true, /* payOnDefault */ true, /* protectStart */ true, premiumFrequency, convention, stubType);