### Question:
WebSocketEndpoint { @OnClose public void onClose() { logger.info("webSocket: /webSocket/demo on Close"); }  @OnOpen void onOpen(Session session); @OnMessage void onMessage(String message, Session session); @OnClose void onClose(); @OnError void onError(Session session, Throwable error);  }### Answer:
@Test public void onClose() { }