PaymentFixedDefinition extends PaymentDefinition { @Override public double getReferenceAmount() { return _amount; } PaymentFixedDefinition(final Currency currency, final ZonedDateTime paymentDate, final double amount); @Override int hashCode(); @Override boolean equals(final Object obj); @Override String toString(); @Override PaymentFixed toDerivative(final ZonedDateTime date); @Override V accept(final InstrumentDefinitionVisitor<U, V> visitor, final U data); @Override V accept(final InstrumentDefinitionVisitor<?, V> visitor); @Override double getReferenceAmount();  }
@Test public void test() { assertEquals(FIXED_PAYMENT.getPaymentDate(), PAYMENT_DATE); assertEquals(FIXED_PAYMENT.getReferenceAmount(), AMOUNT, 1E-2); }