@Test
public void testEnergyFutureOptionSecurity() {
final EnergyFutureSecurity underlying = ExposureFunctionTestHelper.getEnergyFutureSecurity();
final ExposureFunction exposureFunction = new ContractCategoryExposureFunction(ExposureFunctionTestHelper.getSecuritySource(underlying));
final CommodityFutureOptionSecurity security = ExposureFunctionTestHelper.getEnergyFutureOptionSecurity();
final List<ExternalId> ids = security.accept(exposureFunction);
assertEquals(1, ids.size());
assertEquals(ExternalId.of(ExposureFunction.CONTRACT_IDENTIFIER, "Energy"), ids.get(0));
}
@Test