YIELD_CURVE = new ISDADateCurve("ISDA", BASE_DATE, YC_DATES, YC_RATES, OFFSET);
}
@Test(enabled = false)
public void regressionTest() {
final LegacyVanillaCreditDefaultSwapDefinition cds = CreditDefaultSwapDefinitionDataSets.getLegacyVanillaDefinition().withMaturityDate(VALUATION_DATE.plusYears(10));
final double deprecatedResult = DEPRECATED_CALCULATOR.getRecoveryRate01CreditDefaultSwap(VALUATION_DATE, cds, YIELD_CURVE, HR_DATES, HR_RATES, BP, RecoveryRateBumpType.ADDITIVE, PriceType.CLEAN);
final double result = CALCULATOR.getRecoveryRate01CreditDefaultSwap(VALUATION_DATE, cds, YIELD_CURVE, HR_DATES, HR_RATES, BP, RecoveryRateBumpType.ADDITIVE, PriceType.CLEAN);
assertEquals(deprecatedResult, result, EPS);
}