### Question:
ExponentiallyWeightedInterpolationQuantileMethod extends QuantileCalculationMethod { @Override protected QuantileResult quantile(double level, DoubleArray sortedSample, boolean isExtrapolated) { throw new UnsupportedOperationException("Quantile available only from unsorted sample due to weights."); } ExponentiallyWeightedInterpolationQuantileMethod(double lambda); @Override QuantileResult quantileResultFromUnsorted(double level, DoubleArray sample); @Override QuantileResult quantileResultWithExtrapolationFromUnsorted(double level, DoubleArray sample); @Override double quantileFromUnsorted(double level, DoubleArray sample); @Override double quantileWithExtrapolationFromUnsorted(double level, DoubleArray sample); @Override QuantileResult expectedShortfallResultFromUnsorted(double level, DoubleArray sample); @Override double expectedShortfallFromUnsorted(double level, DoubleArray sample); QuantileResult quantileDetailsFromUnsorted(double level, DoubleArray sample); QuantileResult expectedShortfallDetailsFromUnsorted(double level, DoubleArray sample); double[] weights(int size);  }### Answer:
@Test public void quantile() { double[] level = {0.98, 0.981, 0.9811, 0.97}; for (int i = 0; i < level.length; i++) { check_quantile(level[i]); } }