@Test
public void testAfterConnectionClosed() throws Exception {

  // Given
  final LiveUpdateService manager = mock(LiveUpdateService.class);
  final WebSocketSession session = mock(WebSocketSession.class);
  final LiveUpdateSessionHandler handler = new LiveUpdateSessionHandler();
  handler.setManager(manager);
  // When
  handler.afterConnectionClosed(session, CloseStatus.NORMAL);
  // Then
  verify(manager).remove(any());
}