SocketInfo { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((socketPath == null) ? 0 : socketPath.hashCode()); result = prime * result + ((socketPrefix == null) ? 0 : socketPrefix.hashCode()); result = prime * result + ((vhostuserMode == null) ? 0 : vhostuserMode.hashCode()); return result; } SocketInfo(String socketPath, String socketPrefix, String vhostuserMode); String getSocketPath(); String getSocketPrefix(); String getVhostuserMode(); String getVhostUserSocket(); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void hashCodeTest() { final int expectedResult = 1774869086; Assert.assertEquals(socketInfo.hashCode(), expectedResult); }