inOrder.verify(connection, times(1)).sendMessage(MESSAGE);
inOrder.verify(defaultWebsocket2, times(1)).getConnection();
inOrder.verify(connection, times(1)).isOpen();
inOrder.verify(defaultWebsocket2, times(1)).getConnection();
inOrder.verify(connection, times(1)).sendMessage(MESSAGE);
inOrder.verifyNoMoreInteractions();
}
@Test
public void testProcessMultipleMessagesWithException() throws Exception {
when(exchange.getIn()).thenReturn(inMessage);