### Question:
Directory { @Override public int hashCode() { return id.hashCode() * 478; } Directory(UUID id, String name, boolean active, List<UUID> serviceIds, List<UUID> sdkKeys, String androidKey,
                     String iosCertificateFingerprint, Boolean denialContextInquiryEnabled, URI webhookUrl); UUID getId(); String getName(); boolean isActive(); List<UUID> getServiceIds(); List<UUID> getSdkKeys(); String getAndroidKey(); String getIosCertificateFingerprint(); Boolean isDenialContextInquiryEnabled(); URI getWebhookUrl(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void hashcodeIsEqualForSameId() throws Exception { UUID id = UUID.randomUUID(); assertEquals(new Directory(id, null, false, null, null, null, null, null, null).hashCode(), new Directory(id, null, false, null, null, null, null, null, null).hashCode()); }
@Test public void hashcodeIsNotSameAsId() throws Exception { UUID id = UUID.randomUUID(); assertNotEquals(id.hashCode(), new Directory(id, null, false, null, null, null, null, null, null).hashCode()); }