TwoAssetCorrelationOptionDefinition extends OptionDefinition { @SuppressWarnings("unchecked") @Override public OptionExerciseFunction<StandardTwoAssetOptionDataBundle> getExerciseFunction() { return _exerciseFunction; } TwoAssetCorrelationOptionDefinition(final double strike, final Expiry expiry, final boolean isCall, final double payoutLevel); @SuppressWarnings("unchecked") @Override OptionExerciseFunction<StandardTwoAssetOptionDataBundle> getExerciseFunction(); @SuppressWarnings("unchecked") @Override OptionPayoffFunction<StandardTwoAssetOptionDataBundle> getPayoffFunction(); double getPayoutLevel(); @Override int hashCode(); @Override boolean equals(final Object obj);  }
@Test public void testExercise() { assertFalse(CALL.getExerciseFunction().shouldExercise(DATA, null)); assertFalse(PUT.getExerciseFunction().shouldExercise(DATA, null)); }