### Question:
InterpolatedNodalCurveDefinition implements NodalCurveDefinition, ImmutableBean, Serializable { public static InterpolatedNodalCurveDefinition.Builder builder() { return new InterpolatedNodalCurveDefinition.Builder(); } private  InterpolatedNodalCurveDefinition(
      CurveName name,
      ValueType xValueType,
      ValueType yValueType,
      DayCount dayCount,
      List<? extends CurveNode> nodes,
      CurveInterpolator interpolator,
      CurveExtrapolator extrapolatorLeft,
      CurveExtrapolator extrapolatorRight); @Override InterpolatedNodalCurveDefinition filtered(LocalDate valuationDate, ReferenceData refData); @Override CurveMetadata metadata(LocalDate valuationDate, ReferenceData refData); @Override NodalCurve curve(
      LocalDate valuationDate,
      CurveMetadata metadata,
      DoubleArray parameters); static InterpolatedNodalCurveDefinition.Meta meta(); static InterpolatedNodalCurveDefinition.Builder builder(); @Override InterpolatedNodalCurveDefinition.Meta metaBean(); @Override CurveName getName(); ValueType getXValueType(); @Override ValueType getYValueType(); Optional<DayCount> getDayCount(); @Override ImmutableList<CurveNode> getNodes(); CurveInterpolator getInterpolator(); CurveExtrapolator getExtrapolatorLeft(); CurveExtrapolator getExtrapolatorRight(); Builder toBuilder(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void test_toCurveParameterSize() { InterpolatedNodalCurveDefinition test = InterpolatedNodalCurveDefinition.builder() .name(CURVE_NAME) .xValueType(ValueType.YEAR_FRACTION) .yValueType(ValueType.ZERO_RATE) .dayCount(ACT_365F) .nodes(NODES) .interpolator(CurveInterpolators.LINEAR) .extrapolatorLeft(CurveExtrapolators.FLAT) .extrapolatorRight(CurveExtrapolators.FLAT) .build(); assertThat(test.toCurveParameterSize()).isEqualTo(CurveParameterSize.of(CURVE_NAME, NODES.size())); }
@Test public void coverage() { InterpolatedNodalCurveDefinition test = InterpolatedNodalCurveDefinition.builder() .name(CURVE_NAME) .xValueType(ValueType.YEAR_FRACTION) .yValueType(ValueType.ZERO_RATE) .dayCount(ACT_365F) .nodes(NODES) .interpolator(CurveInterpolators.LINEAR) .extrapolatorLeft(CurveExtrapolators.FLAT) .extrapolatorRight(CurveExtrapolators.FLAT) .build(); coverImmutableBean(test); InterpolatedNodalCurveDefinition test2 = InterpolatedNodalCurveDefinition.builder() .name(CurveName.of("Foo")) .nodes(NODES2) .interpolator(CurveInterpolators.LOG_LINEAR) .extrapolatorLeft(CurveExtrapolators.LOG_LINEAR) .extrapolatorRight(CurveExtrapolators.LOG_LINEAR) .build(); coverBeanEquals(test, test2); }
@Test public void test_serialization() { InterpolatedNodalCurveDefinition test = InterpolatedNodalCurveDefinition.builder() .name(CURVE_NAME) .xValueType(ValueType.YEAR_FRACTION) .yValueType(ValueType.ZERO_RATE) .dayCount(ACT_365F) .nodes(NODES) .interpolator(CurveInterpolators.LINEAR) .extrapolatorLeft(CurveExtrapolators.FLAT) .extrapolatorRight(CurveExtrapolators.FLAT) .build(); assertSerialization(test); }