CouponCMS extends CouponFloating { public SwapFixedCoupon<? extends Payment> getUnderlyingSwap() { return _underlyingSwap; } @Deprecated  CouponCMS(final Currency currency, final double paymentTime, final String fundingCurveName, final double paymentYearFraction, final double notional,
      final double fixingTime, final SwapFixedCoupon<? extends Payment> underlyingSwap, final double settlementTime);  CouponCMS(final Currency currency, final double paymentTime, final double paymentYearFraction, final double notional,
      final double fixingTime, final SwapFixedCoupon<? extends Payment> underlyingSwap, final double settlementTime); @SuppressWarnings("deprecation") static CouponCMS from(final CouponFloating coupon, final SwapFixedCoupon<? extends Payment> underlyingSwap, final double settlementTime); SwapFixedCoupon<? extends Payment> getUnderlyingSwap(); double getSettlementTime(); @SuppressWarnings("deprecation") @Override CouponCMS 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 testGetter() { final DayCount actAct = DayCounts.ACT_ACT_ISDA; final ZonedDateTime zonedDate = ZonedDateTime.of(LocalDateTime.of(REFERENCE_DATE.toLocalDate(), LocalTime.MIDNIGHT), ZoneOffset.UTC); final double fixingTime = actAct.getDayCountFraction(zonedDate, FIXING_DATE); assertEquals(fixingTime, CMS_COUPON_RECEIVER.getFixingTime(), 1E-10); assertEquals(SWAP, CMS_COUPON_RECEIVER.getUnderlyingSwap()); assertEquals(NOTIONAL, CMS_COUPON_RECEIVER.getNotional(), 1E-10); }