InOrder inOrder = inOrder(endpoint, store, connection, defaultWebsocket1, defaultWebsocket2, exchange, inMessage);
inOrder.verify(exchange, times(1)).getIn();
inOrder.verify(inMessage, times(1)).getMandatoryBody(String.class);
inOrder.verify(inMessage, times(1)).getHeader(WebsocketConstants.SEND_TO_ALL, false, Boolean.class);
inOrder.verify(inMessage, times(1)).getHeader(WebsocketConstants.CONNECTION_KEY, String.class);
inOrder.verifyNoMoreInteractions();
}
@Test
public void testSendMessage() throws Exception {
when(defaultWebsocket1.getConnection()).thenReturn(connection);