### Question:
ConstantCurve implements Curve, ImmutableBean, Serializable { public static ConstantCurve of(String name, double yValue) { return of(CurveName.of(name), yValue); } private  ConstantCurve(
      CurveMetadata metadata,
      double yValue); static ConstantCurve of(String name, double yValue); static ConstantCurve of(CurveName name, double yValue); static ConstantCurve of(CurveMetadata metadata, double yValue); @Override int getParameterCount(); @Override double getParameter(int parameterIndex); @Override ConstantCurve withParameter(int parameterIndex, double newValue); @Override ConstantCurve withPerturbation(ParameterPerturbation perturbation); @Override double yValue(double x); @Override UnitParameterSensitivity yValueParameterSensitivity(double x); @Override double firstDerivative(double x); @Override ConstantCurve withMetadata(CurveMetadata metadata); static ConstantCurve.Meta meta(); @Override ConstantCurve.Meta metaBean(); @Override CurveMetadata getMetadata(); double getYValue(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void coverage() { ConstantCurve test = ConstantCurve.of(CURVE_NAME, VALUE); coverImmutableBean(test); ConstantCurve test2 = ConstantCurve.of("Coverage", 9d); coverBeanEquals(test, test2); }
@Test public void test_serialization() { ConstantCurve test = ConstantCurve.of(CURVE_NAME, VALUE); assertSerialization(test); }