@Test
public void testHashCodeAndEquals() {

  final WebSocketSession webSocketSession = mock(WebSocketSession.class);
  final LiveUpdateSession session1 = new LiveUpdateSession(webSocketSession);
  final LiveUpdateSession session2 = new LiveUpdateSession(webSocketSession);
  assertTrue(session1.equals(session2));
  assertTrue(new HashSet<>(asList(session1)).contains(session2));
}