@Test
public void testEnergyFutureOption() {
final double answer = -24.356026185994125;
final EnergyFutureDefinition definition = new EnergyFutureDefinition(EXPIRY_DATE, AN_UNDERLYING, UNIT_AMOUNT, null, null, AMOUNT, "tonnes", SettlementType.CASH, 0,
Currency.GBP, SETTLEMENT_DATE);
final EnergyFuture future = definition.toDerivative(A_DATE);
final EnergyFutureOption option = new EnergyFutureOption(EXPIRY, future, STRIKE, EXERCISE, true);
final double pv = option.accept(PRICER, MARKET);
assertEquals(answer, pv * option.getUnderlying().getUnitAmount(), TOLERANCE);
}