Tenant { @Override public int hashCode() { return name.hashCode(); } 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 hashcode() { assertThat(t1.hashCode(), is(t2.hashCode())); assertThat(t1.hashCode(), is(not(t3.hashCode()))); assertThat(t1.hashCode(), is(not(t4.hashCode()))); }