//-------------------------------------------------------------------------
        public virtual void coverage()
        {
            SimpleLegalEntity test = SimpleLegalEntity.of(LEI, "US GOV", Country.US);

            coverImmutableBean(test);
            SimpleLegalEntity test2 = SimpleLegalEntity.of(LEI2, "GB GOV", Country.GB);

            coverBeanEquals(test, test2);
        }
 //-----------------------------------------------------------------------
 public override bool Equals(object obj)
 {
     if (obj == this)
     {
         return(true);
     }
     if (obj != null && obj.GetType() == this.GetType())
     {
         SimpleLegalEntity other = (SimpleLegalEntity)obj;
         return(JodaBeanUtils.equal(legalEntityId, other.legalEntityId) && JodaBeanUtils.equal(name, other.name) && JodaBeanUtils.equal(country, other.country));
     }
     return(false);
 }
        public virtual void test_serialization()
        {
            SimpleLegalEntity test = SimpleLegalEntity.of(LEI, "US GOV", Country.US);

            assertSerialization(test);
        }