Tenant { @Override public boolean equals(Object other) { if (!(other instanceof Tenant)) { return false; } Tenant that = (Tenant) other; return name.equals(that.name); } protected  Tenant(TenantName name,
                     SessionRepository sessionRepository,
                     RequestHandler requestHandler,
                     TenantApplications applicationRepo,
                     Instant created); RequestHandler getRequestHandler(); TenantName getName(); Path getPath(); SessionRepository getSessionRepository(); @Override String toString(); TenantApplications getApplicationRepo(); Instant getCreatedTime(); @Override boolean equals(Object other); @Override int hashCode();  }
@Test public void equals() { new EqualsTester() .addEqualityGroup(t1, t2) .addEqualityGroup(t3) .addEqualityGroup(t4) .testEquals(); }