ForexOptionDigitalDefinition implements InstrumentDefinition<InstrumentDerivative> { public boolean payDomestic() { return _payDomestic; } ForexOptionDigitalDefinition(final ForexDefinition forex, final ZonedDateTime expirationDate, final boolean isCall, final boolean isLong);  ForexOptionDigitalDefinition(final ForexDefinition forex, final ZonedDateTime expirationDate, final boolean isCall, final boolean isLong, final boolean payDomestic); ForexDefinition getUnderlyingForex(); ZonedDateTime getExpirationDate(); boolean isCall(); boolean isLong(); boolean payDomestic(); @Override ForexOptionDigital toDerivative(final ZonedDateTime date); @Override V accept(final InstrumentDefinitionVisitor<U, V> visitor, final U data); @Override V accept(final InstrumentDefinitionVisitor<?, V> visitor); @Override int hashCode(); @Override boolean equals(final Object obj);  }
@Test public void defaultPayCurrency() { assertEquals("ForexOptionDigitalDefinition - constructor", true, new ForexOptionDigitalDefinition(FX_DEFINITION, EXPIRATION_DATE, IS_CALL, IS_LONG, PAY_DOM).payDomestic()); }