// --------------------------------------------------------------------------------------------------------------------------------------------------
@Test(expectedExceptions = IllegalArgumentException.class)
public void testRecoveryRateIsPositive() {
new LegacyVanillaCreditDefaultSwapDefinition(buySellProtection, protectionBuyer, protectionSeller, referenceEntity, currency, debtSeniority, restructuringClause, calendar, startDate, effectiveDate,
maturityDate, stubType, couponFrequency, daycountFractionConvention, businessdayAdjustmentConvention, immAdjustMaturityDate, adjustEffectiveDate,
adjustMaturityDate, notional, -recoveryRate, includeAccruedPremium, protectionStart, parSpread);
}