SwaptionCashFixedIborDefinition implements InstrumentDefinition<SwaptionCashFixedIbor> { @Deprecated public static SwaptionCashFixedIborDefinition from(final ZonedDateTime expiryDate, final SwapFixedIborDefinition underlyingSwap, final boolean isLong) { ArgumentChecker.notNull(expiryDate, "expiry date"); ArgumentChecker.notNull(underlyingSwap, "underlying swap"); return new SwaptionCashFixedIborDefinition(expiryDate, underlyingSwap, underlyingSwap.getFixedLeg().isPayer(), isLong); } private  SwaptionCashFixedIborDefinition(final ZonedDateTime expiryDate, final SwapFixedIborDefinition underlyingSwap, final boolean isCall, final boolean isLong); @Deprecated static SwaptionCashFixedIborDefinition from(final ZonedDateTime expiryDate, final SwapFixedIborDefinition underlyingSwap, final boolean isLong); static SwaptionCashFixedIborDefinition from(final ZonedDateTime expiryDate, final SwapFixedIborDefinition underlyingSwap, final boolean isCall, final boolean isLong); @Override SwaptionCashFixedIbor toDerivative(final ZonedDateTime dateTime); SwapFixedIborDefinition getUnderlyingSwap(); boolean isLong(); boolean isCall(); ZonedDateTime getSettlementDate(); Expiry getExpiry(); Currency getCurrency(); @Override String toString(); @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(expectedExceptions = IllegalArgumentException.class) public void testNullExpiryDate1() { SwaptionCashFixedIborDefinition.from(null, SWAP, IS_LONG); }
@Test(expectedExceptions = IllegalArgumentException.class) public void testNullSwap1() { SwaptionCashFixedIborDefinition.from(EXPIRY_DATE, null, IS_LONG); }
@Test(expectedExceptions = IllegalArgumentException.class) public void testNullExpiryDate2() { SwaptionCashFixedIborDefinition.from(null, SWAP, true, IS_LONG); }
@Test(expectedExceptions = IllegalArgumentException.class) public void testNullSwap2() { SwaptionCashFixedIborDefinition.from(EXPIRY_DATE, null, true, IS_LONG); }