}
static void assertEquityIndexOptionSecurity(EquityIndexOptionSecurity expectedOption, Security sec) {
assertNotNull(expectedOption);
assertNotNull(sec);
EquityIndexOptionSecurity actualOption = (EquityIndexOptionSecurity) sec;
assertEquals(expectedOption.getExternalIdBundle(), actualOption.getExternalIdBundle());
assertEquals(expectedOption.getUniqueId(), actualOption.getUniqueId());
assertEquals(expectedOption.getSecurityType(), actualOption.getSecurityType());
assertEquals(expectedOption.getCurrency(), actualOption.getCurrency());
assertEquals(expectedOption.getOptionType(), actualOption.getOptionType());
assertTrue(expectedOption.getStrike() == actualOption.getStrike());
assertEquals(expectedOption.getExpiry(), actualOption.getExpiry());
assertEquals(expectedOption.getUnderlyingId(), actualOption.getUnderlyingId());
assertEquals(expectedOption.getName(), actualOption.getName());
// check the lot
assertSecurity(expectedOption, sec);
}