//-------------------------------------------------------------------------
@Test
public void test_complex_example() throws Exception {
final ManageableMarketDataSnapshot snapshot1 = new ManageableMarketDataSnapshot();
snapshot1.setName("Test");
final ManageableUnstructuredMarketDataSnapshot globalValues = new ManageableUnstructuredMarketDataSnapshot();
snapshot1.setGlobalValues(globalValues);
final HashMap<YieldCurveKey, YieldCurveSnapshot> yieldCurves = new HashMap<YieldCurveKey, YieldCurveSnapshot>();
final ExternalIdBundle specA = ExternalId.of("XXX", "AAA").toBundle();
final ExternalIdBundle specB = ExternalIdBundle.of(ExternalId.of("XXX", "B1"), ExternalId.of("XXX", "B2"));
globalValues.putValue(specA, "X", new ValueSnapshot(Double.valueOf(12), null));
globalValues.putValue(specA, "Y", new ValueSnapshot(Double.valueOf(1), null));
globalValues.putValue(specA, "Z", new ValueSnapshot(null, null));
globalValues.putValue(specB, "X", new ValueSnapshot(Double.valueOf(12), Double.valueOf(11)));
final ManageableYieldCurveSnapshot manageableYieldCurveSnapshot = new ManageableYieldCurveSnapshot();
manageableYieldCurveSnapshot.setValuationTime(Instant.now());
manageableYieldCurveSnapshot.setValues(globalValues);
yieldCurves.put(new YieldCurveKey(Currency.GBP, "Default"), manageableYieldCurveSnapshot);