public virtual void test_of()
        {
            ResolvedTradeParameterMetadata test = ResolvedTradeParameterMetadata.of(TRADE, "Label");

            assertEquals(test.Label, "Label");
            assertEquals(test.Identifier, "Label");
            assertEquals(test.Trade, TRADE);
        }
        //-------------------------------------------------------------------------
        public virtual void coverage()
        {
            ResolvedTradeParameterMetadata test1 = ResolvedTradeParameterMetadata.of(TRADE, "Label");

            coverImmutableBean(test1);
            ResolvedTrade trade = ResolvedBulletPaymentTrade.of(TradeInfo.empty(), BulletPayment.builder().date(AdjustableDate.of(LocalDate.of(2017, 3, 3))).value(CurrencyAmount.of(Currency.USD, 100d)).payReceive(PayReceive.PAY).build().resolve(REF_DATA));
            ResolvedTradeParameterMetadata test2 = ResolvedTradeParameterMetadata.builder().trade(trade).label("Label2").build();

            coverBeanEquals(test1, test2);
        }
 public override bool Equals(object obj)
 {
     if (obj == this)
     {
         return(true);
     }
     if (obj != null && obj.GetType() == this.GetType())
     {
         ResolvedTradeParameterMetadata other = (ResolvedTradeParameterMetadata)obj;
         return(JodaBeanUtils.equal(trade, other.trade) && JodaBeanUtils.equal(label, other.label));
     }
     return(false);
 }
        public virtual void test_serialization()
        {
            ResolvedTradeParameterMetadata test = ResolvedTradeParameterMetadata.of(TRADE, "Label");

            assertSerialization(test);
        }