// -------------------------------------------------------------------------
  @Test(enabled = false)
  public void test_bond() throws Exception {
    ZonedDateTime zdt = ZonedDateTime.parse("2011-01-31T12:00Z[Europe/London]");
    GovernmentBondSecurity sec =
        new GovernmentBondSecurity(
            "US TREASURY N/B",
            "issuerType",
            "issuerDomicile",
            "market",
            Currency.GBP,
            SimpleYieldConvention.US_TREASURY_EQUIVALANT,
            new Expiry(zdt),
            "couponType",
            23.5d,
            SimpleFrequency.ANNUAL,
            DayCountFactory.INSTANCE.getDayCount("Act/Act"),
            zdt,
            zdt,
            zdt,
            129d,
            1324d,
            12d,
            1d,
            2d,
            3d);
    sec.addExternalId(ExternalId.of("abc", "def"));
    SecurityDocument addDoc = new SecurityDocument(sec);
    SecurityDocument added = _secMaster.add(addDoc);

    SecurityDocument loaded = _secMaster.get(added.getUniqueId());
    assertEquals(added, loaded);

    BondSecuritySearchRequest request = new BondSecuritySearchRequest();
    request.setIssuerName("*TREASURY*");
    SecuritySearchResult result = _secMaster.search(request);
    assertEquals(1, result.getDocuments().size());
    assertEquals(loaded, result.getFirstDocument());
  }
 @Override
 public List<ExternalId> visitGovernmentBondSecurity(final GovernmentBondSecurity security) {
   final String region = security.getIssuerDomicile();
   final String securityType = security.getSecurityType();
   return Arrays.asList(ExternalId.of(SECURITY_IDENTIFIER, securityType + SEPARATOR + region));
 }