@Test(expected = JmsConverterException.class)
public void shouldThrowExceptionWhenFailToRetrieveMessageId() throws JMSException {

    doThrow(JMSException.class).when(textMessage).getText();
    doThrow(JMSException.class).when(textMessage).getJMSMessageID();
    envelopeConverter.fromMessage(textMessage);
}