SocketInfo { public String getVhostUserSocket() { return new StringBuilder().append(socketPath).append(socketPrefix).append(PORT_ID).toString(); } 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 getVhostUserSocketTest() { final String expectedResult = "/tmpsocket_$PORT_ID"; Assert.assertEquals(socketInfo.getVhostUserSocket(), expectedResult); }