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.getIR01ParallelShiftCreditDefaultSwap(VALUATION_DATE, cds, YIELD_CURVE, HR_DATES, HR_RATES, BP, InterestRateBumpType.ADDITIVE_PARALLEL,
PriceType.CLEAN);
final double result = CALCULATOR.getIR01ParallelShiftCreditDefaultSwap(VALUATION_DATE, cds, YIELD_CURVE, HR_DATES, HR_RATES, BP, InterestRateBumpType.ADDITIVE_PARALLEL, PriceType.CLEAN);
assertEquals(deprecatedResult, result, EPS);
}