InterestRateFutureOptionPremiumTransaction extends FuturesTransaction<InterestRateFutureOptionPremiumSecurity> { public PaymentFixed getPremium() { return _premium; } @SuppressWarnings("deprecation")  InterestRateFutureOptionPremiumTransaction(InterestRateFutureOptionPremiumSecurity underlyingOption,
                                                    int quantity,
                                                    double premiumTime,
                                                    double tradePrice); PaymentFixed getPremium(); @Override boolean equals(Object o); @Override int hashCode(); @Override T accept(final InstrumentDerivativeVisitor<S, T> visitor, final S data); @Override T accept(final InstrumentDerivativeVisitor<?, T> visitor);  }
@Test public void getter() { assertEquals(OPTION_EDU2, OPTION_TRANSACTION.getUnderlyingSecurity()); assertEquals(QUANTITY, OPTION_TRANSACTION.getQuantity()); assertEquals(PREMIUM_TIME, OPTION_TRANSACTION.getPremium().getPaymentTime()); assertEquals(-TRADE_PRICE * QUANTITY * NOTIONAL * EDU2.getPaymentAccrualFactor(), OPTION_TRANSACTION.getPremium().getAmount()); assertEquals(TRADE_PRICE, OPTION_TRANSACTION.getReferencePrice()); }