//-------------------------------------------------------------------------
        public virtual void test_of()
        {
            ResolvedSwapTrade test = ResolvedSwapTrade.of(TRADE_INFO, SWAP1);

            assertEquals(test.Product, SWAP1);
            assertEquals(test.Info, TRADE_INFO);
        }
        public virtual void test_builder()
        {
            ResolvedSwapTrade test = ResolvedSwapTrade.builder().product(SWAP1).build();

            assertEquals(test.Info, TradeInfo.empty());
            assertEquals(test.Product, SWAP1);
        }
        //-------------------------------------------------------------------------
        public virtual void coverage()
        {
            ResolvedSwapTrade test = ResolvedSwapTrade.builder().info(TradeInfo.of(date(2014, 6, 30))).product(SWAP1).build();

            coverImmutableBean(test);
            ResolvedSwapTrade test2 = ResolvedSwapTrade.builder().product(SWAP2).build();

            coverBeanEquals(test, test2);
        }
 public override bool Equals(object obj)
 {
     if (obj == this)
     {
         return(true);
     }
     if (obj != null && obj.GetType() == this.GetType())
     {
         ResolvedSwapTrade other = (ResolvedSwapTrade)obj;
         return(JodaBeanUtils.equal(info, other.info) && JodaBeanUtils.equal(product, other.product));
     }
     return(false);
 }
        public virtual void test_serialization()
        {
            ResolvedSwapTrade test = ResolvedSwapTrade.builder().info(TradeInfo.of(date(2014, 6, 30))).product(SWAP1).build();

            assertSerialization(test);
        }