    @Test
    public void shouldProcessMessagesInCorrectOrder() {

        messageQueue.addMessage(stubPeer, MESSAGE_ID, 2, stubContent);
        messageQueue.addMessage(stubPeer, OTHER_MESSAGE_ID, 1, stubContent);

        InOrder inOrder = Mockito.inOrder(processorsService);
        inOrder.verify(processorsService).getMessageProcessor(OTHER_MESSAGE_ID);
        inOrder.verify(processorsService).getMessageProcessor(MESSAGE_ID);
    }