@Test
public void testFXFutureOptionSecurity() {
final FXFutureSecurity underlying = ExposureFunctionTestHelper.getFXFutureSecurity();
final ExposureFunction exposureFunction = new ContractCategoryExposureFunction(ExposureFunctionTestHelper.getSecuritySource(underlying));
final FxFutureOptionSecurity security = ExposureFunctionTestHelper.getFXFutureOptionSecurity();
final List<ExternalId> ids = security.accept(exposureFunction);
assertEquals(1, ids.size());
assertEquals(ExternalId.of(ExposureFunction.CONTRACT_IDENTIFIER, "Currency"), ids.get(0));
}
@Test