}
public static MetalFutureSecurity makeSilverFuture() {
Expiry expiry = new Expiry(ZonedDateTime.of(LocalDateTime.of(2010, Month.JUNE, 28, 18, 25),
ZoneOffset.UTC), ExpiryAccuracy.MIN_HOUR_DAY_MONTH_YEAR);
MetalFutureSecurity sec = new MetalFutureSecurity(expiry, "XCEC", "XCEC", USD, 5000, "Precious Metal");
sec.setName("SILVER FUTURE Jun10");
sec.setUnitNumber(5000.00);
sec.setUnitName("troy oz.");
Set<ExternalId> identifiers = new HashSet<>();
identifiers.add(ExternalSchemes.bloombergBuidSecurityId("IX10217289-0"));
identifiers.add(ExternalSchemes.cusipSecurityId("SIM10"));
identifiers.add(ExternalSchemes.bloombergTickerSecurityId("SIM10 Comdty"));
sec.setExternalIdBundle(ExternalIdBundle.of(identifiers));
sec.setUniqueId(BloombergSecurityProvider.createUniqueId("IX10217289-0"));
return sec;
}