YieldSimpleCurve extends YieldAndDiscountCurve { @Override public int getNumberOfParameters() { return _curve.size(); } YieldSimpleCurve(String name, DoublesCurve curve); @Override double getDiscountFactor(final double t); @Override double getInterestRate(Double x); @Override double getForwardRate(double t); @Override double[] getInterestRateParameterSensitivity(double time); @Override int getNumberOfParameters(); @Override List<String> getUnderlyingCurvesNames(); DoublesCurve getCurve(); @Override int hashCode(); @Override boolean equals(final Object obj);  }
@Test public void numberParameters() { assertEquals("YieldSimpleCurve: parameters", CURVE.getNumberOfParameters(), RATE.size()); }