CouponONArithmeticAverageSpreadSimplified extends Coupon { @Override public Coupon withNotional(double notional) { return null; } private  CouponONArithmeticAverageSpreadSimplified(Currency currency, double paymentTime, double paymentYearFraction, double notional, IndexON index, final double fixingPeriodStartTime,
      double fixingPeriodEndTime, double fixingPeriodAccrualFactor, final double spread); static CouponONArithmeticAverageSpreadSimplified from(double paymentTime, double paymentAccrualFactor, double notional, IndexON index, final double fixingPeriodStartTime,
      double fixingPeriodEndTime, double fixingPeriodAccrualFactor, final double spread); IndexON getIndex(); double getSpread(); double getSpreadAmount(); double getFixingPeriodStartTime(); double getFixingPeriodEndTime(); double getFixingPeriodAccrualFactor(); @Override Coupon withNotional(double notional); @Override T accept(InstrumentDerivativeVisitor<S, T> visitor, S data); @Override T accept(InstrumentDerivativeVisitor<?, T> visitor); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void testWithNotional() { assertNull(CPN_AA_ON.withNotional(NOTIONAL)); }