### Question:
ConstantNodalCurve implements NodalCurve, ImmutableBean, Serializable { public static ConstantNodalCurve of(CurveMetadata metadata, double xValue, double yValue) { return new ConstantNodalCurve(metadata, xValue, yValue); } @ImmutableConstructor private  ConstantNodalCurve(
      CurveMetadata metadata,
      double xValue,
      double yValue); static ConstantNodalCurve of(CurveMetadata metadata, double xValue, double yValue); @Override int getParameterCount(); @Override double getParameter(int parameterIndex); @Override ConstantNodalCurve withParameter(int parameterIndex, double newValue); @Override ConstantNodalCurve withPerturbation(ParameterPerturbation perturbation); @Override DoubleArray getXValues(); @Override DoubleArray getYValues(); @Override double yValue(double x); @Override UnitParameterSensitivity yValueParameterSensitivity(double x); @Override double firstDerivative(double x); @Override ConstantNodalCurve withMetadata(CurveMetadata metadata); @Override ConstantNodalCurve withYValues(DoubleArray yValues); @Override ConstantNodalCurve withValues(DoubleArray xValues, DoubleArray yValues); @Override ConstantNodalCurve withNode(double x, double y, ParameterMetadata paramMetadata); @Override UnitParameterSensitivity createParameterSensitivity(DoubleArray sensitivities); @Override CurrencyParameterSensitivity createParameterSensitivity(Currency currency, DoubleArray sensitivities); static ConstantNodalCurve.Meta meta(); static ConstantNodalCurve.Builder builder(); @Override ConstantNodalCurve.Meta metaBean(); @Override CurveMetadata getMetadata(); double getXValue(); double getYValue(); Builder toBuilder(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void coverage() { ConstantNodalCurve test = ConstantNodalCurve.of(METADATA, XVALUE, YVALUE); coverImmutableBean(test); ConstantNodalCurve test2 = ConstantNodalCurve.of(METADATA_ENTRIES, 55d, 23d); coverBeanEquals(test, test2); }
@Test public void test_serialization() { ConstantNodalCurve test = ConstantNodalCurve.of(METADATA, XVALUE, YVALUE); assertSerialization(test); }