@Test(expectedExceptions = JMSException.class)
public void testCreateMessageShouldThrowJmsExceptionWhenSetObjectThrowsJMSException() throws JMSException {

    // GIVEN
    given(session.createObjectMessage()).willReturn(objectMessage);
    willThrow(new JMSException(NO_WILMA_LOGGER_ID)).given(objectMessage).setObject(response);
    // WHEN
    underTest.createMessage(session);
    // THEN exception is thrown
}