security.setUniqueId(UniqueId.of(UniqueId.EXTERNAL_SCHEME.getName(), "94876"));
return security;
}
public static CreditDefaultSwapIndexDefinitionSecurity getCreditDefaultSwapIndexDefinitionSecurity() {
final CDSIndexTerms terms = CDSIndexTerms.of(Tenor.ONE_YEAR);
final CDSIndexComponentBundle components = CDSIndexComponentBundle.of(new CreditDefaultSwapIndexComponent("NAME", ExternalId.of("Test", "A"), 1., ExternalId.of("Test", "Bond")));
final CreditDefaultSwapIndexDefinitionSecurity security = new CreditDefaultSwapIndexDefinitionSecurity("1", "1", "All", USD, 0.02, terms, components);
security.setUniqueId(UniqueId.of(UniqueId.EXTERNAL_SCHEME.getName(), "1223"));
return security;
}