PaymentFixed extends Payment { public double getAmount() { return _amount; } @Deprecated  PaymentFixed(final Currency currency, final double paymentTime, final double paymentAmount, final String fundingCurve);  PaymentFixed(final Currency currency, final double paymentTime, final double paymentAmount); @SuppressWarnings("deprecation") PaymentFixed withAmount(final double paymentAmount); double getAmount(); @Override T accept(final InstrumentDerivativeVisitor<S, T> visitor, final S data); @Override String toString(); @Override int hashCode(); @Override boolean equals(final Object obj); @Override T accept(final InstrumentDerivativeVisitor<?, T> visitor); @Override double getReferenceAmount();  }
@Test public void testGetters() { assertEquals(PAYMENT.getPaymentTime(), PAYMENT_TIME, 0); assertEquals(PAYMENT.getAmount(), AMOUNT, 0); }