ConstantDoublesCurve extends DoublesCurve { @Override public Double[] getXData() { throw new UnsupportedOperationException("Cannot get x data for constant curve"); } protected  ConstantDoublesCurve();  ConstantDoublesCurve(final double y);  ConstantDoublesCurve(final double y, final String name); static ConstantDoublesCurve from(final double y); static ConstantDoublesCurve from(final double y, final String name); @Override Double[] getXData(); @Override Double[] getYData(); @Override Double getYValue(final Double x); @Override Double[] getYValueParameterSensitivity(final Double x); InterpolatedDoublesCurve toInterpolatedDoublesCurve(final double[] x, final Interpolator1D interpolator); @Override double getDyDx(final double x); @Override int size(); @Override boolean equals(final Object obj); @Override int hashCode(); @Override String toString(); static ConstantDoublesCurve.Meta meta(); @Override ConstantDoublesCurve.Meta metaBean(); final Property<Double> y(); @Override ConstantDoublesCurve clone();  }
@Test(expectedExceptions = UnsupportedOperationException.class) public void testGetXData() { CURVE.getXData(); }