@Test
public void testBondFutureOptionSecurity() {
final BondFutureSecurity underlying = ExposureFunctionTestHelper.getBondFutureSecurity();
final ExposureFunction exposureFunction = new ContractCategoryExposureFunction(ExposureFunctionTestHelper.getSecuritySource(underlying));
final BondFutureOptionSecurity security = ExposureFunctionTestHelper.getBondFutureOptionSecurity();
final List<ExternalId> ids = security.accept(exposureFunction);
assertEquals(1, ids.size());
assertEquals(ExternalId.of(ExposureFunction.CONTRACT_IDENTIFIER, "Financial"), ids.get(0));
}
@Test