CouponONArithmeticAverage extends Coupon { @Override public Coupon withNotional(final double notional) { return null; } private  CouponONArithmeticAverage(final Currency currency, final double paymentTime, final double paymentYearFraction, final double notional, final IndexON index,
      final double[] fixingPeriodStartTimes,
      final double[] fixingPeriodEndTimes, final double[] fixingPeriodAccrualFactors, final double rateAccrued, final double fixingPeriodRemainingAccrualFactor); static CouponONArithmeticAverage from(final double paymentTime, final double paymentAccrualFactor, final double notional, final IndexON index, final double[] fixingPeriodStartTimes,
      final double[] fixingPeriodEndTimes, final double[] fixingPeriodAccrualFactors,
      final double rateAccrued); IndexON getIndex(); double[] getFixingPeriodStartTimes(); double[] getFixingPeriodEndTimes(); double[] getFixingPeriodAccrualFactors(); double getRateAccrued(); double getFixingPeriodRemainingAccrualFactor(); @Override Coupon withNotional(final double notional); @Override T accept(final InstrumentDerivativeVisitor<S, T> visitor, final S data); @Override T accept(final InstrumentDerivativeVisitor<?, T> visitor); @Override int hashCode(); @Override boolean equals(final Object obj);  }
@Test public void testWithNotional() { assertNull(CPN_AA_ON.withNotional(NOTIONAL)); }