final AnalyticCDSPricer testedPricer = new AnalyticCDSPricer();
final Pricer pricer = BUILDER.new Pricer(CDS, YIELD_CURVE, CREDIT_CURVE_KNOTS, DEAL_SPREAD / 10000., 0.0);
final double proLeg1 = testedPricer.protectionLeg(CDS, YIELD_CURVE, CREDIT_CURVE);
final double proLeg2 = pricer.protectionLeg(CREDIT_CURVE);
final double premLeg1 = testedPricer.pvPremiumLegPerUnitSpread(CDS, YIELD_CURVE, CREDIT_CURVE, PriceType.CLEAN);
final double premLeg2 = pricer.rpv01(CREDIT_CURVE, PriceType.CLEAN);
assertEquals("pro-leg", proLeg1, proLeg2, 1e-13);