TenantDomains { public TenantDomains setTenantDomainNames(List<String> tenantDomainNames) { this.tenantDomainNames = tenantDomainNames; return this; }  TenantDomains setTenantDomainNames(List<String> tenantDomainNames); List<String> getTenantDomainNames(); @Override boolean equals(Object another); public List<String> tenantDomainNames; }
@Test public void TestEqualsFalse() { TenantDomains td1 = new TenantDomains(); TenantDomains td2 = new TenantDomains(); td1.setTenantDomainNames(new ArrayList<>(Arrays.asList("A", "B", "C"))); Assert.assertNotEquals(td1, td2); Assert.assertNotEquals("", td1); }