### Question:
AccessRequest { @Override public int hashCode() { return Objects.hashCode(id, requestorId, requestorName, requestorEmail, account, region, approverComments, actionedByUserId, actionedByUserName, ticketId, requestReason, platform, hours, users, instances); } AccessRequest();  AccessRequest(Integer hours,
                         String account,
                         String region,
                         String requestorId,
                         String requestorName,
                         String requestorEmail,
                         List<User> users,
                         List<AWSInstance> instances,
                         String requestReason,
                         String approverComments,
                         String actionedByUserId,
                         String actionedByUserName,
                         String platform); @Id @GeneratedValue Long getId(); AccessRequest setId(Long id); String getRequestorId(); AccessRequest setRequestorId(String requestorId); String getRequestorName(); AccessRequest setRequestorName(String requestorName); String getRequestorEmail(); AccessRequest setRequestorEmail(String requestorEmail); String getAccount(); AccessRequest setAccount(String account); String getRegion(); AccessRequest setRegion(String region); @Column(length = 5000) String getApproverComments(); AccessRequest setApproverComments(String approverComments); String getPlatform(); AccessRequest setPlatform(String platform); Integer getHours(); AccessRequest setHours(Integer hours); @OneToMany(cascade = CascadeType.ALL) List<User> getUsers(); AccessRequest setUsers(List<User> users); @OneToMany(cascade = CascadeType.ALL) List<AWSInstance> getInstances(); AccessRequest setInstances(List<AWSInstance> instances); @Column(length = 100) String getTicketId(); AccessRequest setTicketId(String ticketId); @Column(length = 5000) String getRequestReason(); AccessRequest setRequestReason(String requestReason); String getActionedByUserId(); AccessRequest setActionedByUserId(String actionedByUserId); String getActionedByUserName(); AccessRequest setActionedByUserName(String actionedByUserName); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void testHashCode(){ Long id = 1L; Integer hours = 45; String account = "Dev"; String region = "us-west"; String requestorId = "testId"; String requestorName = "Test Dude"; String requestorEmail = "Test@email.com"; String ticketId = "TEST-123"; String requestReason = "Test Request Reason"; String approverComments = "Test Approver Comments"; String approverName = "Test Approver"; String approverId = "TestA"; String platform = "Test platform"; List<User> users = Arrays.asList(new User("theguy", "thatguy", "thatguy@email.com")); List<AWSInstance> instances = Arrays.asList(new AWSInstance("The dude", "TST", "i-tst", "127.0.0.1","Another state","Platform1")); AccessRequest accessRequest = new AccessRequest() .setId(id) .setHours(hours) .setAccount(account) .setRegion(region) .setRequestorId(requestorId) .setRequestorName(requestorName) .setRequestorEmail(requestorEmail) .setUsers(users) .setInstances(instances) .setTicketId(ticketId) .setRequestReason(requestReason) .setApproverComments(approverComments) .setActionedByUserId(approverId) .setActionedByUserName(approverName) .setPlatform(platform); Assert.assertEquals("Testing hashCode()", Objects.hash(id, requestorId, requestorName, requestorEmail, account, region, approverComments, approverId, approverName, ticketId, requestReason, platform, hours, users, instances), accessRequest.hashCode()); }