//-------------------------------------------------------------------------
        public virtual void coverage()
        {
            CombinedMarketData test = new CombinedMarketData(BASE_DATA1, BASE_DATA2);

            coverImmutableBean(test);
            CombinedMarketData test2 = new CombinedMarketData(BASE_DATA2, BASE_DATA1);

            coverBeanEquals(test, test2);
        }
 //-----------------------------------------------------------------------
 public override bool Equals(object obj)
 {
     if (obj == this)
     {
         return(true);
     }
     if (obj != null && obj.GetType() == this.GetType())
     {
         CombinedMarketData other = (CombinedMarketData)obj;
         return(JodaBeanUtils.equal(underlying1, other.underlying1) && JodaBeanUtils.equal(underlying2, other.underlying2));
     }
     return(false);
 }
        //-------------------------------------------------------------------------
        public virtual void test_combination()
        {
            CombinedMarketData test = new CombinedMarketData(BASE_DATA1, BASE_DATA2);

            assertEquals(test.ValuationDate, VAL_DATE);
            assertEquals(test.containsValue(ID1), true);
            assertEquals(test.containsValue(ID2), true);
            assertEquals(test.containsValue(ID3), true);
            assertEquals(test.containsValue(ID5), false);
            assertEquals(test.getValue(ID1), VAL1);
            assertEquals(test.getValue(ID2), VAL2);
            assertEquals(test.getValue(ID3), VAL3);
            assertThrows(() => test.getValue(ID5), typeof(MarketDataNotFoundException));
            assertEquals(test.findValue(ID1), VAL1);
            assertEquals(test.findValue(ID2), VAL2);
            assertEquals(test.findValue(ID3), VAL3);
            assertEquals(test.findValue(ID5), null);
            assertEquals(test.Ids, ImmutableSet.of(ID1, ID2, ID3));
            assertEquals(test.findIds(ID1.MarketDataName), ImmutableSet.of(ID1));
            assertEquals(test.findIds(ID3.MarketDataName), ImmutableSet.of(ID3));
            assertEquals(test.findIds(ID4.MarketDataName), ImmutableSet.of());
            assertEquals(test.getTimeSeries(ID5), TIME_SERIES);
            assertEquals(test.getTimeSeries(ID6), TIME_SERIES);
        }
        public virtual void serialization()
        {
            CombinedMarketData test = new CombinedMarketData(BASE_DATA1, BASE_DATA2);

            assertSerialization(test);
        }