}
@Test
public void testDoWebSocketConnect() {
websocketComponentServlet.setConsumer(consumer);
WebSocket webSocket = websocketComponentServlet.doWebSocketConnect(request, PROTOCOL);
assertNotNull(webSocket);
assertEquals(DefaultWebsocket.class, webSocket.getClass());
DefaultWebsocket defaultWebsocket = (DefaultWebsocket) webSocket;
defaultWebsocket.setConnectionKey(CONNECTION_KEY);
defaultWebsocket.onMessage(MESSAGE);
InOrder inOrder = inOrder(consumer, sync, request);
inOrder.verify(consumer, times(1)).sendMessage(CONNECTION_KEY, MESSAGE);