LogOptionDefinition extends OptionDefinition { @Override public OptionExerciseFunction<StandardOptionDataBundle> getExerciseFunction() { return _exerciseFunction; } LogOptionDefinition(final double strike, final Expiry expiry); @Override OptionExerciseFunction<StandardOptionDataBundle> getExerciseFunction(); @Override OptionPayoffFunction<StandardOptionDataBundle> getPayoffFunction(); @Override int hashCode(); @Override boolean equals(final Object obj);  }
@Test public void testExercise() { final OptionExerciseFunction<StandardOptionDataBundle> exercise = DEFINITION.getExerciseFunction(); assertFalse(exercise.shouldExercise(DATA, STRIKE + 1)); assertFalse(exercise.shouldExercise(DATA, STRIKE - 1)); }