TenantDomains { @Override public boolean equals(Object another) { if (this != another) { if (another == null || another.getClass() != TenantDomains.class) { return false; } TenantDomains a = (TenantDomains) another; if (tenantDomainNames == null ? a.tenantDomainNames != null : !tenantDomainNames.equals(a.tenantDomainNames)) { return false; } } return true; }  TenantDomains setTenantDomainNames(List<String> tenantDomainNames); List<String> getTenantDomainNames(); @Override boolean equals(Object another); public List<String> tenantDomainNames; }
@Test public void TestEqualsTrue() { TenantDomains td = new TenantDomains(); td.equals(td); }